/* ==========================================================================
   Book Trial Page Redesign
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

/* 1. Page Background & Wave Divider */
.book-trial-page {
    background: linear-gradient(135deg, #f8fcff 0%, #e6f6f9 100%);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 200px; /* Space for the wave */
}

.book-trial-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 1;
    overflow: hidden;
    line-height: 0;
}
.book-trial-wave svg {
    display: block;
    width: calc(100% + 20px);
    margin-left: -10px; /* Slight offset to hide edges during scaling */
    height: 100%;
    transform-origin: bottom center;
    animation: wave-breathe 7s ease-in-out infinite;
}

@keyframes wave-breathe {
    0%, 100% {
        transform: scaleY(1) scaleX(1);
    }
    50% {
        transform: scaleY(1.15) scaleX(1.02);
    }
}

/* 2. Grid Layout */
.bt-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 5;
}

@media (max-width: 992px) {
    .bt-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 3. Left Content Area */
.bt-hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 99px;
    width: fit-content;
}

.bt-title {
    font-size: 4.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.bt-title span {
    color: #0d9488;
}

.bt-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 460px;
}

/* Horizontal Features */
.bt-horiz-features {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.bt-horiz-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bt-horiz-icon {
    width: 40px;
    height: 40px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
}
.bt-horiz-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

/* Vertical Cards (Why Choose Us) */
.bt-vert-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    max-width: 320px;
}
.bt-vert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.bt-vert-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.15);
    flex-shrink: 0;
}
.bt-vert-card.emerald .bt-vert-icon { color: #10b981; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15); }
.bt-vert-card.blue .bt-vert-icon { color: #3b82f6; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); }
.bt-vert-card.amber .bt-vert-icon { color: #f59e0b; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15); }

.bt-vert-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.bt-vert-text p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 4. Right Content Area (Image & Form) */
.bt-hero-right {
    position: relative;
    padding-top: 20px;
}
.bt-image-wrap {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100%;
    max-width: 500px;
    z-index: 1;
}
.bt-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.bt-doodle {
    position: absolute;
    top: -20px;
    right: -20px;
    color: #0d9488;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    transform: rotate(6deg);
    line-height: 1.2;
    text-align: center;
}

/* Glassmorphism Form Card */
.bt-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    margin-top: 180px; /* Push down to reveal image behind */
}

.bt-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.bt-form-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(20, 184, 166, 0.1);
    color: #0d9488;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bt-form-header-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.bt-form-header-text p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Progress Pill */
.bt-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 99px;
    padding: 8px;
    margin-bottom: 30px;
}
.bt-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
}
.bt-step span.num {
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.bt-step.active, .bt-step.progress-step.active {
    background: #0d9488 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    border: 2px solid #0d9488 !important;
}
.bt-step.active span.num, .bt-step.progress-step.active span.num {
    background: #fff;
    color: #0d9488;
}

/* Modern Input Groups */
.bt-input-group {
    margin-bottom: 20px;
}
.bt-input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}
.bt-input-group label i,
.bt-input-group label svg {
    width: 14px;
    height: 14px;
    color: #3b82f6; /* Blue icon */
}
.bt-input-group label .req {
    color: #ef4444;
}

.bt-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.bt-input-wrapper i,
.bt-input-wrapper svg {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.bt-input-wrapper input, .bt-input-wrapper select {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    transition: all 0.3s ease;
}
.bt-input-wrapper input:focus, .bt-input-wrapper select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    outline: none;
}
.bt-input-wrapper:focus-within i, 
.bt-input-wrapper:focus-within svg {
    color: #0d9488;
}

/* Radio Cards (for Class Type / Program) */
.bt-radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.bt-radio-card {
    position: relative;
    cursor: pointer;
}
.bt-radio-card input {
    display: none;
}
.bt-radio-card .card-content {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    background: #fff;
}
.bt-radio-card .card-content h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}
.bt-radio-card .card-content p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 4px 0 0 0;
}
.bt-radio-card input:checked + .card-content {
    border-color: #0d9488;
    background: rgba(20, 184, 166, 0.05);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}
.bt-radio-card input:checked + .card-content h4,
.bt-radio-card input:checked + .card-content i,
.bt-radio-card input:checked + .card-content svg {
    color: #0d9488;
}

/* Next Step Button */
.bt-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}
.bt-btn {
    background: #0d9488;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}
.bt-btn:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.bt-btn-wrap.space-between {
    justify-content: space-between;
}
.bt-btn-outline {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}
.bt-btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    transform: none;
}

/* Form Steps Visibility */
.bt-form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.bt-form-step.active {
    display: block;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .bt-title {
        font-size: 3rem;
    }
    .bt-image-wrap {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: -40px;
    }
    .bt-form-card {
        margin-top: 0;
        padding: 24px;
    }
    .bt-progress {
        flex-wrap: wrap;
        gap: 8px;
        padding: 4px;
    }
    .bt-step {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .bt-horiz-features {
        flex-direction: column;
    }
}
