/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Hero Root ──────────────────────────────────────────────── */
.rp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Desktop is fine */
    font-family: 'DM Sans', sans-serif;
    background-color: #00081c;
    
    /* Branding Variables */
    --rp-blue-dark: #00205d;
    --rp-blue-med: #0371be;
    --rp-yellow: #f9e07f;
}

/* ── Hero Background Image ────────────────────────────────── */
.rp-hero__bg-static {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-image: url('../../images/bg-image/family-hero.webp');
    background-position: 20% center; /* Shifted left to push faces right */
    background-size: cover;
    background-repeat: no-repeat;
}

.rp-hero__bg {
    display: none; /* Hide legacy bg */
}

.rp-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 8, 28, 0.95) 0%,
        rgba(0, 8, 28, 0.85) 35%,
        rgba(0, 8, 28, 0.0) 55%
    );
    z-index: 1;
}

.rp-hero__accent-bar {
    display: none !important;
}

.rp-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 20px 80px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 80px;
    row-gap: 4px;
    align-items: start;
}

/* ── LEFT ───────────────────────────────────────────────────── */
.rp-hero__left { 
    color: #fff;
    margin-top: 65px;
}

.rp-hero__eyebrow {
    display: inline-block;
    text-align: center;
    background: rgba(3, 113, 190, 0.20);
    border: 1px solid rgba(3, 113, 190, 0.45);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 90vw; /* Strict constraint for mobile */
    white-space: normal;
    word-wrap: break-word;
}
.rp-hero__eyebrow span.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rp-yellow);
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 2px;
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.rp-hero__super-heading {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 2.5rem);
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 12px 0;
}

.rp-hero__yellow-line {
    width: 100%;
    max-width: 440px;
    height: 3px;
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    margin: 0 0 18px 0;
    border-radius: 2px;
}

.rp-hero__heading {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0;
}



.rp-hero__heading em {
    font-style: normal;
    color: #7dd3fc; /* Light Blue */
}

.rp-hero__rule {
    width: 56px; height: 4px;
    background: var(--rp-blue-med);
    border-radius: 2px;
    margin: 12px 0 16px;
}

.rp-hero__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    max-width: 440px;
    margin: 0 0 16px;
}

.rp-hero__tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--rp-yellow);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

.rp-hero__stats {
    display: flex;
    gap: 36px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.rp-stat__num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--rp-yellow);
    line-height: 1;
}

.rp-stat__label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ── RIGHT — Search Card ────────────────────────────────────── */
.rp-hero__right {
    display: flex;
    justify-content: center;
}

.rp-search-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 1rem 0;
    width: 100%;
    max-width: 520px;
    box-shadow: none;
    position: relative;
}

.rp-search-card__accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 30px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    z-index: 10;
}

.rp-search-card__accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0170c0, #02205c);
}

.rp-search-card__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #facc15; /* Match hero accent */
    margin: 0 0 6px;
    font-family: 'Roboto', sans-serif;
}

.rp-search-card__subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 22px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

.rp-search-card__ai-wrap {
    position: relative;
    margin-bottom: 18px;
}

.rp-search-card__ai-input {
    width: 100%;
    box-sizing: border-box;
    height: 75px !important;
    padding: 0 42px 0 18px;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #000000 !important;
    background: #ffffff !important;
    backdrop-filter: none;
    text-align: left;
    outline: none;
    transition: all 0.3s ease;
}

.rp-search-card__ai-input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-size: 16px !important;
    font-weight: 500;
}

.rp-search-card__ai-input:focus {
    border-color: var(--rp-blue-med) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(3, 113, 190, 0.15);
}

.rp-search-card__ai-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.ai-hero-results {
    background: rgba(0, 32, 93, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.ai-hero-results.hidden {
    display: none;
}

.ai-hero-results__header {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--rp-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ai-hero-results__body {
    padding: 12px 16px;
    font-size: 13px;
    color: #cbd5e1;
}

.ai-insight-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#aiDiscoverySection.hidden {
    display: none;
}

#aiDiscoverySection:not(.hidden) {
    display: block;
    animation: slideUp 0.8s ease forwards;
}

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

.ai-hero-results__header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.6;
}

.ai-hero-results__header button:hover { opacity: 1; }

.ai-hero-results__body {
    padding: 16px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    text-align: left;
}

.ai-hero-results__body strong { color: #fff; }

.ai-hero-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    gap: 16px;
    width: 100%;
}

.typing-dots {
    display: flex;
    gap: 8px;
}

.typing-dots span {
    width: 10px;
    height: 10px;
    background: var(--rp-yellow);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 1; }
}

.rp-search-card__divider span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}

.rp-search-card__divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

.rp-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.rp-filter-grid select {
    width: 100%;
    height: 60px; /* Matched to Select2 height */
    padding: 0 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #000000 !important;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23000000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 15px center / 10px no-repeat;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.rp-filter-grid select:focus {
    border-color: #facc15;
    background-color: rgba(255, 255, 255, 0.2);
}

.rp-filter-grid select option {
    color: #000;
    background: #fff;
}

.rp-search-card__btn {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, rgba(1, 112, 192, 0.45) 0%, rgba(2, 32, 92, 0.45) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.rp-search-card__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.rp-search-card__btn:hover::after { transform: translateX(100%); }
.rp-search-card__btn:hover { opacity: 0.92; transform: translateY(-1px); }
.rp-search-card__btn:active { transform: translateY(0); }

.rp-survey-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    text-decoration: none;
    transition: background 0.2s;
}

.rp-survey-badge:hover { background: #fef9c3; }

.rp-survey-badge span {
    font-size: 12.5px;
    font-weight: 600;
    color: #92400e;
    font-family: 'DM Sans', sans-serif;
}

.rp-survey-badge i { color: #f59e0b; font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────────── */

/* === Tablet and below === */
@media (max-width: 900px) {
    .rp-hero {
        align-items: flex-start;
        padding-top: 68px; /* Offset for header height */
        height: auto;
        min-height: unset;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100vw;
    }
    .rp-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 8, 28, 0.45) 0%,
            rgba(0, 8, 28, 0.20) 35%,
            rgba(0, 8, 28, 0.55) 75%,
            rgba(0, 8, 28, 0.90) 100%
        ) !important;
    }
    .rp-hero__bg-static {
        background-image: url('../../images/bg-image/mobile_hero_parents.png') !important;
        background-position: center top !important;
        background-size: cover !important;
    }
    .rp-hero__inner {
        grid-template-columns: 1fr;
        padding: 16px 20px 32px;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .rp-hero__left    { 
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        text-align: left;
        margin-top: 0 !important;
    }
    .rp-hero__content-box {
        text-align: left !important;
        display: inline-block;
        width: auto;
        max-width: 100%;
        margin: 0;
    }
    .rp-hero__yellow-line { 
        margin: 6px 0 12px 0 !important; 
        width: 100%; 
        max-width: 240px; 
        height: 3px !important;
        border-radius: 2px;
    }
    .rp-hero__rule    { margin: 8px 0 12px 0 !important; }
    .rp-hero__desc    { display: none !important; }
    .rp-hero__tagline { display: none !important; }
    .rp-hero__stats   { display: none !important; }
    .rp-hero__right   { justify-content: center; width: 100%; }
    .rp-search-card   { max-width: 100%; width: 100%; box-sizing: border-box; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
    
    .select2-container--default .select2-selection--single {
        height: 46px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px !important;
        padding-left: 14px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px !important;
        right: 12px !important;
    }
}

/* === Small phones: 430px and below (iPhone 14 baseline) === */
@media (max-width: 430px) {
    .rp-hero {
        padding-top: 64px; /* Exact offset for mobile header */
    }
    .rp-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 8, 28, 0.40) 0%,
            rgba(0, 8, 28, 0.15) 35%,
            rgba(0, 8, 28, 0.50) 75%,
            rgba(0, 8, 28, 0.88) 100%
        ) !important;
    }
    .rp-hero__bg-static {
        background-image: url('../../images/bg-image/mobile_hero_parents.png') !important;
        background-position: center top !important;
        background-size: cover !important;
    }
    .rp-hero__inner {
        padding: 14px 16px 28px;
        gap: 16px;
    }
    .rp-hero__super-heading {
        font-size: clamp(1.2rem, 4vw, 1.4rem) !important;
        line-height: 1.2 !important;
        letter-spacing: 0.06em !important;
        font-weight: 800 !important;
        margin-bottom: 4px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
    }
    .rp-search-card__ai-input { 
        height: 46px !important; 
        font-size: 14px !important; 
        padding: 0 40px 0 14px !important; 
        letter-spacing: -0.01em !important;
        font-weight: 500;
        border-radius: 12px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }
    .rp-search-card__ai-input::placeholder {
        font-size: 14px !important;
        letter-spacing: -0.01em !important;
        font-weight: 500;
    }
    .rp-search-card__ai-icon {
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 16px !important;
        color: #64748b !important;
    }
    .rp-hero__heading {
        font-size: clamp(1.7rem, 5.2vw, 2.05rem) !important;
        line-height: 1.16 !important;
        margin-bottom: 0 !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
    }
    .rp-hero__heading em {
        color: #38bdf8 !important;
        font-style: normal !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 10px rgba(3, 113, 190, 0.5) !important;
    }
    .rp-filter-grid { 
        grid-template-columns: 1fr; 
        gap: 10px !important; 
    }
    .rp-filter-grid select { 
        height: 46px !important; 
        font-size: 14px !important; 
        border-radius: 12px !important;
    }
    .rp-search-card__btn { 
        height: 46px !important; 
        font-size: 15px !important; 
        font-weight: 700 !important;
        border-radius: 12px !important;
        margin-top: 10px !important;
        box-shadow: 0 4px 12px rgba(3, 113, 190, 0.35) !important;
    }
}

/* === Responsive Polish for Trust Wall Section === */
@media (max-width: 768px) {
    #trust-wall {
        padding-top: 32px !important;
        padding-bottom: 40px !important;
    }
    #trust-wall .mb-16 {
        margin-bottom: 20px !important;
    }
    #trust-wall h2 {
        font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }
    #trust-wall p.text-lg {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
}

/* === Very small phones: 390px and below (iPhone SE, Galaxy S8) === */
@media (max-width: 390px) {
    .rp-hero {
        padding-top: 60px; 
    }
    .rp-hero__inner {
        padding: 12px 12px 24px;
        gap: 14px;
    }
    .rp-hero__super-heading {
        font-size: 1.15rem !important;
    }
    .rp-hero__heading {
        font-size: 1.65rem !important;
        line-height: 1.14 !important;
    }
    .rp-filter-grid { gap: 9px !important; }
    .rp-filter-grid select { height: 46px !important; font-size: 13.5px !important; }
    .rp-search-card__btn { height: 46px !important; font-size: 14.5px !important; }
}

/* === Absolute smallest: 360px (Samsung Galaxy S8, older Androids) === */
@media (max-width: 360px) {
    .rp-hero__inner {
        padding: 10px 10px 20px;
    }
    .rp-hero__super-heading {
        font-size: 1.05rem !important;
    }
    .rp-hero__heading {
        font-size: 1.5rem !important;
    }
}

/* ── Swiper / Testimonial ───────────────────────────────────── */
.testimonialSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.testimonialSwiper .swiper-slide > div { max-width: 850px; }
.swiper-pagination-bullets { bottom: 0 !important; }
.swiper-pagination-bullet { background: #fff !important; opacity: .4; }
.swiper-pagination-bullet-active { background: #facc15 !important; opacity: 1; }

/* ── School Card Hover Float ────────────────────────────────── */
@keyframes glowFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
.school-card:hover { animation: glowFloat 3s ease-in-out infinite; }

/* ── View Details Button ────────────────────────────────────── */
.view-details-btn {
    background: linear-gradient(135deg, #0170c0, #02205c);
}

/* ── Survey CTA (for other uses) ────────────────────────────── */
.survey-cta-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}
.survey-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.4);
}
.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(249, 224, 127, 0.4);
    animation: ring-pulse 2s infinite;
    pointer-events: none;
}
@keyframes ring-pulse {
    0%   { transform: scale(0.95); opacity: 0; }
    50%  { opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0; }
}
@media (max-width: 640px) {
    .survey-cta-btn { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
}

.rp-filter-item {
    position: relative;
    width: 100%;
}

/* Select2 Glassmorphism Styling */
.rp-hero__heading {
    margin-bottom: 2rem !important;
}

.rp-hero__content-box {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
}

.rp-hero__content-box:hover {
    background: transparent !important;
    border-color: transparent !important;
    transform: none;
}

@media (max-width: 768px) {
    .rp-hero__content-box {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background: #ffffff !important;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000000 !important;
    padding-left: 15px !important;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 58px !important;
    right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000000 transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #000000 transparent !important;
}

.select2-container--default .select2-selection--single:hover {
    background: #ffffff !important;
    border-color: var(--rp-blue-med) !important;
}

.select2-dropdown {
    background: rgba(255, 255, 255, 1) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    margin-top: 5px;
    z-index: 99999 !important;
    width: 100% !important; /* Force match parent width */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    overflow: hidden;
}

.select2-results__option {
    padding: 12px 15px !important;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #facc15 !important;
    color: #000 !important;
}

.select2-search--dropdown {
    padding: 12px !important;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px !important;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Red border box & red text for unselected required fields */
.rp-filter-item.field-error .select2-container--default .select2-selection--single,
.rp-filter-item.field-error select,
select.field-error,
.field-error input,
input.field-error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
    background-color: #fff5f5 !important;
    color: #ef4444 !important;
    animation: rpShake 0.3s ease-in-out;
}

.rp-filter-item.field-error .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-error .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ef4444 !important;
}

.rp-filter-item.field-error .select2-container--default .select2-selection--single .select2-selection__arrow b,
.field-error .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #ef4444 transparent transparent transparent !important;
}

select.field-error option {
    color: #000000;
}

@keyframes rpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Global Heading Font Override */
h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .rp-hero__heading, .rp-search-card__subtitle {
    font-family: 'Roboto', sans-serif !important;
}

        #trust-wall .swiper-pagination-bullet { width: 30px; height: 4px; border-radius: 2px; background: #E5E7EB; opacity: 1; transition: all 0.3s; }
        #trust-wall .swiper-pagination-bullet-active { background: #2563EB; width: 50px; }
        #trust-wall .trustSwiper { padding: 40px 0 80px 0; position: relative; overflow: visible !important; }
        #trust-wall .swiper-slide { height: auto; display: flex; transition: all 0.5s ease; }
        #trust-wall .swiper-slide > div { display: flex; flex-direction: column; flex: 1; width: 100%; }
        .trust-swiper-prev, .trust-swiper-next { cursor: pointer; visibility: visible !important; opacity: 1 !important; z-index: 100 !important; }
        @media (max-width: 640px) {
            .trust-swiper-prev, .trust-swiper-next { display: none; }
        }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-15px) rotate(1deg); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

/* ---- converted inline styles ---- */
.rp-search-card__ai-icon--dim { color: rgba(0,0,0,0.5); font-size: 20px; }
#heroSearchDivider { height: 12px; }
.search-results-title { margin-top: 40px; }
#resultsSection { display: none; }
.rp-heading-fluid { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
.delay-3s { animation-delay: 3s; }
.ai-loading-row { display: flex; align-items: center; gap: 10px; }
.typing-dots span.dot-sm, .ai-loading-row .typing-dots span { width: 6px; height: 6px; }
.ai-loading-text { font-size: 13px; color: #facc15; font-weight: 600; }
.ai-ok { color: #4ade80; }
.ai-ok a { color: #facc15; font-weight: bold; text-decoration: underline; }
.ai-err { color: #f87171; }


/* ── AI search results grid ───────────────────────────────── */
.ai-grid-count{font-size:1rem;font-weight:700;color:#00205d;margin:0 0 .25rem}
.ai-grid-note{font-size:.9rem;color:#8a6d00;background:#fff8dc;border:1px solid #f3e2a0;border-radius:10px;padding:.5rem .8rem;margin:.25rem 0 .75rem}
.ai-school-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.25rem;margin:1rem 0 1.5rem}
.ai-school-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:1.1rem 1.15rem;box-shadow:0 4px 14px rgba(3,113,190,.08);transition:transform .25s,box-shadow .25s;font-size:1rem}
.ai-school-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(3,113,190,.18)}
.ai-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}
.ai-card-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#0371be,#00205d)}
.ai-card-rating{font-size:.85rem;font-weight:700;color:#8a6d00;background:#fff3c4;border-radius:999px;padding:.15rem .6rem}.ai-card-rating i{color:#f5b301;margin-right:.2rem}
.ai-card-title{font-size:1.1rem;line-height:1.3;font-weight:800;color:#0b2447;margin:0 0 .4rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9rem}
.ai-card-line,.ai-card-fee{font-size:.9rem;color:#475569;margin:0 0 .35rem;display:flex;gap:.45rem;align-items:flex-start}
.ai-card-line i,.ai-card-fee i{color:#0371be;margin-top:.2rem;width:.9rem;flex:0 0 auto}.ai-card-fee{font-weight:700;color:#0b2447}
.ai-card-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin:.2rem 0 .6rem}.ai-card-tags span{font-size:.75rem;font-weight:600;color:#0b5cad;background:#eaf3ff;border-radius:999px;padding:.15rem .6rem}
.ai-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:auto;padding-top:.7rem}
.ai-card-compare,.ai-card-view{display:flex;align-items:center;justify-content:center;gap:.35rem;padding:.55rem .5rem;border-radius:12px;font-weight:700;font-size:.9rem;text-decoration:none;cursor:pointer;transition:all .2s}
.ai-card-compare{background:transparent;border:1.5px solid #0371be;color:#0371be}.ai-card-compare:hover{background:#eaf3ff}
.ai-card-view{color:#fff;border:1.5px solid transparent;background:linear-gradient(90deg,#0371be,#00205d)}.ai-card-view:hover{box-shadow:0 6px 16px rgba(0,32,93,.3);color:#fff}

/* Reviews carousel dots: visible on the light background, one row on phones */
#trust-wall .swiper-pagination-bullet { width: 22px !important; height: 4px !important; border-radius: 2px !important; background: #CBD5E1 !important; opacity: 1 !important; margin: 0 3px !important; }
#trust-wall .swiper-pagination-bullet-active { width: 38px !important; background: #2563EB !important; }
#trust-wall .swiper-pagination { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 480px) { #trust-wall .swiper-pagination-bullet { width: 14px !important; margin: 0 2px !important; } #trust-wall .swiper-pagination-bullet-active { width: 26px !important; } }
