/* ========================================
   Booking Page Specific Styles
   Premium, Clean, Professional
======================================== */

/* Booking Hero */
.booking-hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.booking-container {
    max-width: 720px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.booking-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.booking-header p {
    font-size: 1.0625rem;
    color: var(--gray-500);
}

/* Progress Steps */
.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
}

.step.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step-number {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.5rem;
}

/* Booking Card */
.booking-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 10px 15px -3px rgb(0 0 0 / 0.05);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.booking-card-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.booking-card-header h2 {
    font-size: 1.375rem;
    color: var(--secondary);
    margin-bottom: 0.375rem;
}

.booking-card-header p {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.booking-card-body {
    padding: 1.5rem 2rem 2rem;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Purpose Options */
.purpose-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.purpose-option {
    position: relative;
}

.purpose-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.purpose-option label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.purpose-option label:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.purpose-option input:checked + label {
    border-color: var(--primary);
    background: rgba(0, 108, 53, 0.02);
}

.purpose-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

.purpose-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-500);
    transition: var(--transition);
}

.purpose-option input:checked + label .purpose-icon {
    background: var(--primary);
}

.purpose-option input:checked + label .purpose-icon svg {
    color: var(--white);
}

.purpose-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.purpose-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--secondary);
}

.purpose-description {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8125rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

[dir="rtl"] .form-select {
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 3rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Booking Actions */
.booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.btn-back {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
}

.btn-back:hover {
    background: var(--gray-200);
}

/* Summary Card */
.summary-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row .label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.summary-row .value {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

[dir="rtl"] .summary-row .value {
    text-align: left;
}

/* Booking Note */
.booking-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 108, 53, 0.04);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.booking-note svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.booking-note p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 26, 65, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.modal-icon.success {
    background: var(--primary);
}

.modal-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-content .btn {
    width: 100%;
}

/* Footer Minimal */
.footer-minimal {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.footer-minimal p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 640px) {
    .booking-hero {
        padding: 6rem 0 2rem;
    }

    .booking-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .step-text {
        display: none;
    }

    .step-line {
        width: 20px;
    }

    .booking-card-header,
    .booking-card-body {
        padding: 1.5rem;
    }

    .purpose-option label {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .purpose-text {
        align-items: center;
    }

    .booking-actions {
        flex-direction: column-reverse;
    }

    .booking-actions .btn {
        width: 100%;
    }
}
