/* ===========================
   RESET & ROOT
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:      #0f0f0f;
    --card:    #1e1e1e;
    --card2:   #242424;
    --yellow:  #ffcc00;
    --white:   #ffffff;
    --text:    #d9d9d9;
    --green:   #25D366;
    --blue:    #1877F2;
    --radius:  14px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* ===========================
   CONTAINER
=========================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

/* ===========================
   LOGO
=========================== */
.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo img {
    max-width: 650px;
    width: 100%;
    height: auto;
}

/* ===========================
   FINDER BOX
=========================== */
.finder-box {
    background: #181818;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.08);
}

/* ===========================
   SELECT GRID
=========================== */
.select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--yellow);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Native select fallback */
select {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--radius);
    background: #2a2a2a;
    color: #fff;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

/* ===========================
   FIND BUTTON
=========================== */
.find-btn {
    width: 100%;
    margin-top: 20px;
    height: 55px;
    border: none;
    border-radius: var(--radius);
    background: var(--yellow);
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.find-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.35);
}

.find-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===========================
   LOADER
=========================== */
.loader {
    display: none;
    text-align: center;
    color: var(--yellow);
    padding: 20px;
    font-size: 16px;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ===========================
   RESULTS GRID
=========================== */
.results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

/* ===========================
   UNIVERSITY CARD
=========================== */
.card {
    background: var(--card);
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.4;
}

.card p {
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

.card strong {
    color: var(--yellow);
}

/* Best value card */
.best-card {
    border: 2px solid var(--yellow);
    box-shadow: 0 0 22px rgba(255, 204, 0, 0.22);
}

.best-badge {
    display: inline-block;
    background: var(--yellow);
    color: #000;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
}

.lowest-fee {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: normal;
}

/* Fee box */
.fee-box {
    margin-top: 15px;
    background: var(--yellow);
    color: #000;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.fee-amount {
    font-size: 28px;
    font-weight: bold;
}

.fee-label {
    margin-top: 5px;
    font-size: 13px;
    font-weight: bold;
}

/* Card WhatsApp button */
.card-actions {
    margin-top: 20px;
}

.whatsapp-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.whatsapp-btn:hover {
    opacity: 0.88;
}

/* ===========================
   NO RESULTS
=========================== */
.no-result {
    background: var(--card);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-result h3 {
    color: var(--yellow);
    margin-bottom: 10px;
    font-size: 20px;
}

.no-result p {
    color: var(--text);
    margin-bottom: 18px;
}

.no-result .whatsapp-btn {
    max-width: 260px;
    margin: 0 auto;
    display: block;
}

/* ===========================
   STICKY BAR
=========================== */
.sticky-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    width: min(95%, 700px);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    z-index: 9999;
}

.sticky-btn {
    height: 52px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.sticky-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.sticky-whatsapp { background: var(--green); color: #fff; }
.sticky-pdf      { background: var(--yellow); color: #000; }
.sticky-share    { background: var(--blue); color: #fff; }

/* ===========================
   FOOTER
=========================== */
.footer {
    margin-top: 50px;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding-bottom: 90px;
}

/* ===========================
   PDF TEMPLATE (hidden)
=========================== */
.pdf-template {
    display: none;
}

/* ===========================
   CHOICES.JS OVERRIDES
=========================== */
.choices {
    width: 100%;
    margin-bottom: 0;
}

.choices__inner {
    min-height: 52px !important;
    background: #ffffff !important;
    color: #111111 !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 8px 12px !important;
    font-size: 15px;
}

.choices__input {
    color: #111111 !important;
    background: #ffffff !important;
    font-size: 15px !important;
}

.choices__list--single .choices__item {
    color: #111111 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background: #ffffff !important;
    color: #111111 !important;
    border: none !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    color: #111111 !important;
    padding: 10px 14px !important;
    font-size: 14px;
}

.choices__item--choice.is-highlighted {
    background: #ffcc00 !important;
    color: #000000 !important;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {

    .container {
        padding: 10px;
    }

    .logo img {
        max-width: 280px;
    }

    .finder-box {
        padding: 15px;
        border-radius: 15px;
    }

    .select-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 18px;
    }

    .card h3 {
        font-size: 17px;
    }

    .fee-amount {
        font-size: 24px;
    }

    .sticky-bar {
        width: 96%;
        gap: 6px;
    }

    .sticky-btn {
        font-size: 12px;
        height: 46px;
        padding: 0 6px;
    }

    .footer {
        padding-bottom: 80px;
    }
}