:root {
    --error-color: #cc0000;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
    
}

.logo-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}


.booking-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.booking-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.booking-form{
    padding-bottom: 60px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #2c3e50;
    border-left: 5px solid #0073e6;
    padding-left: 12px;
}

.selection-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    background: #f9fbfc;
    box-shadow: inset 0 0 0 1px #e0e6ed;
}

.input-wrapper {
    flex: 1 1 18%;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    box-sizing: border-box;
}

.input-wrapper input,
.input-wrapper select {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #0073e6;
    outline: none;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    padding-top: 4px;
    padding-left: 2px;
    min-height: 1em;
}

.passenger-entry-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.passenger-entry {
    display: grid;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: #f9fbfc;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #e0e6ed;
}

/* First passenger row (with email) */
.passenger-entry.first {
    grid-template-columns: repeat(6, 1fr) auto;
}

/* Other passenger rows (without email) */
.passenger-entry.other {
    grid-template-columns: repeat(5, 1fr) auto;
}

.trash-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.trash-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #ff4c4c;
    cursor: pointer;
    height: 100%;
    padding: 10px 12px;
    transition: background 0.2s ease;
}

.trash-btn:hover {
    background-color: #ffeaea;
    transform: scale(1.1);
}

.add-btn {
    margin-top: 12px;
    background-color: #0073e6;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-btn:hover {
    background-color: #005bb5;
}

.extra-service-section {
    padding-top: 12px;
    margin-top: 20px;
}

.extra-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.extra-service-entry {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    background: #f7faff;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
}

.extra-service-entry .input-wrapper {
    flex: 1 1 calc(50% - 12px);
    min-width: 160px;
}

.extra-service-entry input[readonly] {
    background-color: #eef4fa;
    font-weight: bold;
    color: #333;
    border: 1px solid #ccc;
}

.description{
    flex: 1 1 100%;   /* zauzima ceo novi red */
    font-size: 13px;
    margin: 6px 0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 24px;
    overflow-y: auto;
}

.modal {
    background: #ffffff;
    padding: 32px 40px;
    border-radius: 14px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInScale 0.25s ease;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border-bottom: 1px solid #e6e9f0;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #333;
}

.summary-table thead th {
    font-weight: 600;
    background: #f4f6fa;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9f0;
}

.summary-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9f0;
    vertical-align: middle;
}

.summary-table .right {
    text-align: right;
}

.summary-table .center {
    text-align: center;
}

.summary-table tfoot {
    background: #f9fafc;
}

.summary-table tfoot th {
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 12px 10px;
    border-top: 1px solid #e6e9f0;
    text-align: right;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #0073e6;
    color: white;
}

.btn-primary:hover {
    background-color: #005bb5;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* === Sticky Total Price Bar === */
.live-price-total {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 12px 16px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: bold;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eaeaea;
}

/* === Booking form session Messages === */
.session-messages {
    margin: 1.5rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.tax-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 40%;
}

.legal-entity{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    margin-top: 10px;
}
.read-more{
    color: #333;
    cursor: pointer;
}

/* === Note Section === */
.form-section.note {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-section.note label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1rem;
}

.form-section.note textarea {
    width: 98%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}

.form-section.note textarea:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.form-section.note .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1em;
}



/* Animation for spinner */
@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.fa-spin {
  animation: fa-spin 2s infinite linear;
}


/* Animation for modal */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .input-wrapper {
        flex: 1 1 45%;
    }

    .extra-service-entry .input-wrapper {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .selection-group,
    .passenger-entry,
    .extra-service-entry,
    .modal-actions {
        flex-direction: column;
    }

    .input-wrapper {
        flex: 1 1 100%;
    }

    .passenger-entry.first, .passenger-entry.other {
        grid-template-columns: 1fr;
    }

    .trash-wrapper {
        justify-content: flex-end;
        padding-top: 8px;
    }

    .modal {
        padding: 20px;
    }

    .summary-table th,
    .summary-table td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .live-price-total {
        font-size: 1rem;
        text-align: center;
        padding: 10px;
    }
    .alert {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    .tax-line{
        width: 80%;
    }

     .form-section.note textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
        min-height: 100px;
    }
}
