/* ==========================================================================
   BOOK CONSULTATION PAGE SPECIFIC STYLES
   ========================================================================== */

/* Main Booking Section Wrapper */
.booking-section-wrapper {
    position: relative;
    padding: 8rem 0;
    background-color: var(--bg-light);
    overflow: hidden;
    min-height: 85vh;
}

/* Background Radial Glow Effects */
.booking-radial-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 123, 32, 0.06) 0%, transparent 75%);
}

.bg-glow-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 96, 173, 0.08) 0%, transparent 65%);
}

/* Grid Layout */
.booking-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   LEFT COLUMN: CTA & DETAILS PANEL
   ========================================================================== */
.booking-info-column {
    display: flex;
    flex-direction: column;
}

.booking-heading-title {
    font-size: 3.2rem;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.booking-intro-desc {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.booking-paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Bullet Highlights Cards */
.booking-bullet-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.bullet-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-white);
    border: 1px solid rgba(0, 75, 135, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.bullet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.bullet-icon-wrapper {
    width: 45px;
    height: 45px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bullet-text-wrapper h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.bullet-text-wrapper p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Saffron CTA Alert box */
.cta-alert-box {
    background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 237, 213, 0.4) 100%);
    border: 1px dashed var(--gold-dark);
    border-radius: var(--border-radius-md);
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.cta-alert-box h3 {
    color: var(--gold-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-alert-box p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    justify-content: flex-start;
}

/* ==========================================================================
   RIGHT COLUMN: GLASSMORPHIC BOOKING CARD
   ========================================================================== */
.booking-card-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 75, 135, 0.06);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.booking-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 75, 135, 0.08);
    padding-bottom: 1.5rem;
}

.header-icon {
    width: 40px;
    height: 40px;
    fill: var(--primary);
    flex-shrink: 0;
}

.booking-card-header h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.booking-card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Form Sections */
.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 2rem 0 1.25rem 0;
    border-left: 3px solid var(--gold);
    padding-left: 0.5rem;
    line-height: 1;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

/* Floating label Input group */
.input-group-floating {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.input-group-floating input {
    width: 100%;
    padding: 1.1rem 1rem 1.1rem 3.2rem;
    border: 1.5px solid rgba(0, 75, 135, 0.15);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group-floating label {
    position: absolute;
    left: 3.2rem;
    top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-icon {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: fill 0.3s;
}

/* Active floating transitions */
.input-group-floating input:focus,
.input-group-floating.focused input {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 96, 173, 0.08);
}

.input-group-floating input:focus ~ label,
.input-group-floating input:not(:placeholder-shown) ~ label,
.input-group-floating.focused label {
    top: -0.65rem;
    left: 0.9rem;
    font-size: 0.75rem;
    color: var(--primary-light);
    background-color: var(--bg-white);
    padding: 0 0.4rem;
    font-weight: 600;
}

.input-group-floating input:focus ~ .field-icon svg,
.input-group-floating.focused .field-icon svg {
    fill: var(--primary-light);
}

/* Double Row input */
.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Select dropdown input styling */
.input-group-select {
    position: relative;
    margin-bottom: 2rem;
}

.input-group-select select {
    width: 100%;
    padding: 1.1rem 2.5rem 1.1rem 3.2rem;
    border: 1.5px solid rgba(0, 75, 135, 0.15);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

/* Select focus */
.input-group-select select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 96, 173, 0.08);
}

/* Add custom arrow icon for dropdown */
.input-group-select::after {
    content: '';
    position: absolute;
    right: 1.2rem;
    top: 1.5rem;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    pointer-events: none;
    transition: border-color 0.3s;
}

.input-group-select select:focus ~ .field-icon svg {
    fill: var(--primary-light);
}

/* Date picker specific */
.date-picker-group input {
    cursor: pointer;
}

.date-picker-group label {
    top: -0.65rem;
    left: 0.9rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-white);
    padding: 0 0.4rem;
    font-weight: 600;
}

/* Textarea input styling */
.input-group-textarea {
    position: relative;
    margin-bottom: 2rem;
}

.input-group-textarea textarea {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.2rem;
    border: 1.5px solid rgba(0, 75, 135, 0.15);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group-textarea textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 96, 173, 0.08);
}

.field-icon-textarea {
    position: absolute;
    left: 1.1rem;
    top: 1.25rem;
}

.field-icon-textarea svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: fill 0.3s;
}

.input-group-textarea textarea:focus ~ .field-icon-textarea svg {
    fill: var(--primary-light);
}

/* ==========================================================================
   CUSTOM RADIO BUTTON CARDS
   ========================================================================== */
.radio-section-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.radio-card-option {
    cursor: pointer;
    position: relative;
    width: 100%;
}

.radio-card-option input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    background: var(--bg-white);
    border: 1.5px solid rgba(0, 75, 135, 0.15);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
    text-align: center;
    gap: 0.5rem;
    height: 100%;
}

.radio-circle {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(0, 75, 135, 0.3);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: border-color 0.3s;
}

.radio-circle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.radio-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}

/* Radio hover and selected classes */
.radio-card-option:hover .radio-content {
    border-color: rgba(244, 123, 32, 0.4);
    background-color: var(--bg-light);
}

.radio-card-option input:checked + .radio-content {
    border-color: var(--gold);
    background-color: var(--gold-light);
}

.radio-card-option input:checked + .radio-content .radio-circle {
    border-color: var(--gold-dark);
}

.radio-card-option input:checked + .radio-content .radio-circle::after {
    transform: scale(1);
}

.radio-card-option input:checked + .radio-content .radio-title-text {
    color: var(--gold-dark);
}

/* ==========================================================================
   FORM VALIDATION ERROR STYLES
   ========================================================================== */
.error-msg {
    position: absolute;
    bottom: -1.35rem;
    left: 0.2rem;
    font-size: 0.75rem;
    color: #e11d48; /* Crimson error red */
    font-weight: 500;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

/* Invalid state triggers */
.input-group-floating.invalid input,
.input-group-select.invalid select,
.input-group-textarea.invalid textarea {
    border-color: #e11d48 !important;
}

.input-group-floating.invalid label {
    color: #e11d48 !important;
}

.input-group-floating.invalid .error-msg,
.input-group-select.invalid .error-msg,
.input-group-textarea.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
}

/* Submission action button spinner */
.btn-submit-booking {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.05rem;
    gap: 0.75rem;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 27, 51, 0.2);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   SUCCESS CARD STYLING
   ========================================================================== */
.booking-success-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 168, 89, 0.15); /* Clean green accent boundary */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: successReveal 0.5s var(--transition-smooth) forwards;
}

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

/* Icon badge animate scale */
.success-icon-badge {
    width: 75px;
    height: 75px;
    background: rgba(0, 168, 89, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon-badge svg {
    width: 42px;
    height: 42px;
    fill: var(--accent-green);
    animation: popCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
    transform: scale(0);
}

@keyframes popCheck {
    to { transform: scale(1); }
}

.booking-success-card h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.success-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Receipt container */
.booking-receipt {
    background: var(--bg-light);
    border: 1.5px solid rgba(0, 75, 135, 0.06);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(0, 75, 135, 0.08);
    font-size: 0.9rem;
}

.receipt-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.receipt-row.header-row {
    border-bottom: 1.5px solid rgba(0, 75, 135, 0.1);
    padding-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.receipt-row span {
    color: var(--text-muted);
}

.receipt-row strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.receipt-row.header-row strong {
    color: var(--gold-dark);
    font-weight: 700;
}

/* success advice notice alert */
.success-alert {
    background: rgba(0, 96, 173, 0.04);
    border-radius: var(--border-radius-sm);
    padding: 1.1rem 1.4rem;
    display: flex;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.alert-icon {
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.success-alert p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* success actions */
.success-actions {
    display: flex;
    gap: 1rem;
}

.success-actions .btn {
    flex: 1;
}

/* Scroll Animation classes */
.animate-fade-in-up {
    animation: fadeInUpB 0.8s var(--transition-smooth) forwards;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Large screens and desktop scaling */
@media (max-width: 1200px) {
    .booking-grid {
        gap: 3rem;
    }
    
    .booking-heading-title {
        font-size: 2.8rem;
    }
}

/* Tablets Landscape & Portrait */
@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr; /* Stack into single column */
        gap: 5rem;
    }
    
    .booking-info-column {
        max-width: 750px;
        margin: 0 auto;
    }
    
    .booking-form-column {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .booking-section-wrapper {
        padding: 6rem 0;
    }
}

/* Mobile landscape and smaller screen ratios */
@media (max-width: 768px) {
    .booking-heading-title {
        font-size: 2.4rem;
    }
    
    .booking-paragraph {
        margin-bottom: 2rem;
    }
}

/* Mobile Portrait views */
@media (max-width: 576px) {
    .booking-card-wrapper {
        padding: 2.5rem 1.5rem;
    }
    
    .form-row-double {
        grid-template-columns: 1fr; /* Stack form rows */
        gap: 0;
    }
    
    .radio-cards-grid {
        grid-template-columns: 1fr; /* Stack radio button options */
        gap: 0.75rem;
    }
    
    .radio-content {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
    
    .booking-success-card {
        padding: 2.5rem 1.5rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-actions .btn {
        width: 100%;
    }
    
    .booking-heading-title {
        font-size: 2.1rem;
    }
    
    .booking-intro-desc {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   PRINT LAYOUT OVERRIDES (INVOICE GENERATOR PRINT)
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }
    
    #bookingSuccessCard,
    #bookingSuccessCard * {
        visibility: visible;
    }
    
    #bookingSuccessCard {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .success-actions,
    .success-alert {
        display: none !important;
    }
}
