/* =========================================================
   ECN PARTNER ENROLLMENT
   COMPLETE CSS
========================================================= */


/* =========================================================
   ROOT VARIABLES — DARK MODE
========================================================= */

:root {

    --bg: #080c14;
    --bg-secondary: #0d121c;

    --surface: #111827;
    --surface-hover: #172033;

    --border: #263244;
    --border-light: #334155;

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --primary: #ef4444;
    --primary-dark: #dc2626;

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);

    --success: #22c55e;
    --warning: #f59e0b;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.30);

    --radius: 14px;

    --transition:
        0.25s ease;

}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light {

    --bg: #f5f7fa;
    --bg-secondary: #ffffff;

    --surface: #ffffff;
    --surface-hover: #f8fafc;

    --border: #dbe2ea;
    --border-light: #cbd5e1;

    --text: #111827;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --primary: #dc2626;
    --primary-dark: #b91c1c;

    --accent: #0284c7;
    --accent-soft: rgba(2, 132, 199, 0.10);

    --success: #16a34a;
    --warning: #d97706;

    --shadow:
        0 15px 40px rgba(15, 23, 42, 0.08);

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    transition:
        background-color var(--transition),
        color var(--transition);

}


/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

button,
input,
select,
textarea {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    width: 100%;

    min-height: 76px;

    padding:
        0 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(8, 12, 20, 0.92);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition);
}


body.light .navbar {

    background:
        rgba(255, 255, 255, 0.94);

}


/* =========================================================
   NAV LEFT
========================================================= */

.nav-left {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


/* =========================================================
   ECN HOME / LOGO BUTTON
========================================================= */

.ecn-home-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    text-decoration: none;
    color: inherit;

    padding: 6px 10px;
    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.ecn-logo {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* HOVER */

.ecn-home-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ecn-home-link:hover .ecn-home-icon {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.40);

    transform: translateY(-1px);
}

/* CLICK */

.ecn-home-link:active {
    transform: scale(0.98);
}

/* KEYBOARD ACCESSIBILITY */

.ecn-home-link:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 3px;
    border-radius: 10px;
}


/* =========================================================
   NAV RIGHT
========================================================= */

.nav-right {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

}


/* =========================================================
   NATIONAL HELPLINES DROPDOWN
========================================================= */

.dropdown {

    position: relative;

}


.dropdown-btn {

    min-height: 42px;

    padding:
        0 15px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text-secondary);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        all var(--transition);

}


.dropdown-btn:hover {

    border-color:
        var(--border-light);

    color:
        var(--text);

    background:
        var(--surface-hover);

}


.status-dot {

    width: 7px;

    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.10);

}


.dropdown-btn .arrow {

    margin-left: 3px;

    font-size: 10px;

    transition:
        transform var(--transition);

}


.dropdown.active .dropdown-btn .arrow {

    transform:
        rotate(180deg);

}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {

    position: absolute;

    top: calc(100% + 12px);

    right: 0;

    width: 340px;

    padding: 8px;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    pointer-events: none;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);

}


.dropdown.active .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;

}


/* =========================================================
   DROPDOWN TITLE
========================================================= */

.dropdown-title {

    padding:
        12px 12px 10px;

    border-bottom:
        1px solid var(--border);

}


.dropdown-title h4 {

    color:
        var(--text);

    font-size: 13px;

    font-weight: 700;

}


.dropdown-title p {

    margin-top: 4px;

    color:
        var(--text-muted);

    font-size: 11px;

}


/* =========================================================
   DROPDOWN ITEM
========================================================= */

.dropdown-item {

    min-height: 65px;

    padding:
        10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    border-radius: 10px;

    transition:
        background var(--transition);

}


.dropdown-item:hover {

    background:
        var(--surface-hover);

}


.dropdown-item .left {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

}


.dropdown-item .icon {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    font-size: 14px;

}


.dropdown-item .icon.red {

    color: #ef4444;

    background:
        rgba(239, 68, 68, 0.12);

}


.dropdown-item .icon.green {

    color: #22c55e;

    background:
        rgba(34, 197, 94, 0.12);

}


.dropdown-item .icon.blue {

    color: #38bdf8;

    background:
        rgba(56, 189, 248, 0.12);

}


.dropdown-item .icon.orange {

    color: #f59e0b;

    background:
        rgba(245, 158, 11, 0.12);

}


.dropdown-item h5 {

    color:
        var(--text);

    font-size: 12px;

    font-weight: 700;

}


.dropdown-item small {

    display: block;

    margin-top: 3px;

    color:
        var(--text-muted);

    font-size: 10px;

}


.dropdown-item > span {

    color:
        var(--text);

    font-size: 14px;

    font-weight: 800;

}


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.btn-signin {

    min-height: 42px;

    padding:
        0 16px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        transparent;

    color:
        var(--text);

    font-size: 13px;

    font-weight: 700;

    transition:
        all var(--transition);

}


.btn-signin:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    background:
        var(--accent-soft);

}


.btn-signin i {

    font-size: 11px;

    transition:
        transform var(--transition);

}


.btn-signin:hover i {

    transform:
        translateX(3px);

}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {

    width: 42px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size: 15px;

    transition:
        all var(--transition);

}


.theme-toggle:hover {

    color:
        var(--accent);

    border-color:
        var(--accent);

    background:
        var(--accent-soft);

    transform:
        translateY(-1px);

}


.theme-toggle i {

    transition:
        transform 0.3s ease;

}


.theme-toggle:active i {

    transform:
        rotate(25deg);

}


/* =========================================================
   BANNER
========================================================= */

.banner-section {

    width: 100%;

    padding:
        75px 30px 65px;

    border-bottom:
        1px solid var(--border);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(56, 189, 248, 0.08),
            transparent 45%
        );

}


.banner-content {

    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    text-align: center;

}


.badge-title {

    display: inline-flex;

    align-items: center;

    padding:
        7px 12px;

    border:
        1px solid rgba(239, 68, 68, 0.25);

    border-radius: 999px;

    background:
        rgba(239, 68, 68, 0.08);

    color:
        var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


.main-heading {

    margin-top: 18px;

    color:
        var(--text);

    font-size:
        clamp(32px, 5vw, 54px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -0.04em;

}


.banner-description {

    max-width: 700px;

    margin: 18px auto 0;

    color:
        var(--text-muted);

    font-size: 15px;

    line-height: 1.75;

}


/* =========================================================
   MAIN PAGE
========================================================= */

.page-container {

    width: 100%;

    padding:
        50px 30px 80px;

}


.layout-wrapper {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 30px;

    align-items: start;

}


/* =========================================================
   FORM CONTAINER
========================================================= */

.form-container {

    min-width: 0;

    padding:
        30px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

}


/* =========================================================
   SECTION GROUP
========================================================= */

.section-group {

    margin-bottom: 30px;

}


.section-label {

    display: block;

    margin-bottom: 14px;

    color:
        var(--text-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


/* =========================================================
   PARTNER GRID
========================================================= */

.partner-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

}


.partner-card {

    min-height: 125px;

    padding: 20px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        var(--bg-secondary);

    cursor: pointer;

    transition:
        all var(--transition);

}


.partner-card:hover {

    border-color:
        var(--accent);

    background:
        var(--surface-hover);

    transform:
        translateY(-2px);

}


.partner-card.active {

    border-color:
        var(--accent);

    background:
        var(--accent-soft);

    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.12);

}


.partner-icon {

    width: 25px;

    height: 25px;

    margin-bottom: 11px;

    color:
        var(--accent);

    stroke-width: 1.8;

}


.partner-title {

    color:
        var(--text);

    font-size: 12px;

    font-weight: 700;

}


.partner-price {

    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 10px;

    font-weight: 500;

}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {

    display: grid;

    gap: 18px;

}


.form-grid.col-2 {

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    margin-bottom: 18px;

}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {

    width: 100%;

    margin-bottom: 18px;

}


.input-group.half-width {

    width: 50%;

}


.input-group label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.input-group input,
.input-group textarea,
.input-group select {

    width: 100%;

    border:
        1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background:
        var(--bg-secondary);

    color:
        var(--text);

    font-size: 13px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);

}


.input-group input,
.input-group select {

    height: 46px;

    padding:
        0 14px;

}


.input-group textarea {

    min-height: 95px;

    padding:
        13px 14px;

    resize:
        vertical;

}


.input-group input::placeholder,
.input-group textarea::placeholder {

    color:
        var(--text-muted);

    opacity:
        0.65;

}


.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.09);

}


/* =========================================================
   CUSTOM SELECT
========================================================= */

.custom-select-wrapper {

    position: relative;

}


.custom-select-wrapper select {

    appearance: none;

    -webkit-appearance: none;

    padding-right: 42px;

}


.select-icon {

    position: absolute;

    top: 50%;

    right: 14px;

    width: 16px;

    height: 16px;

    color:
        var(--text-muted);

    transform:
        translateY(-50%);

    pointer-events: none;

}


/* =========================================================
   SECTION DIVIDER
========================================================= */

.section-divider {

    display: flex;

    align-items: center;

    gap: 15px;

    margin:
        35px 0 22px;

}


.section-divider::after {

    content: "";

    height: 1px;

    flex: 1;

    background:
        var(--border);

}


.sub-header-title {

    color:
        var(--text);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


/* =========================================================
   CHIPS
========================================================= */

.chips-group {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.chip {

    min-height: 34px;

    padding:
        0 13px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background:
        var(--bg-secondary);

    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 600;

    transition:
        all var(--transition);

}


.chip:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

}


.chip.active {

    border-color:
        var(--accent);

    background:
        var(--accent-soft);

    color:
        var(--accent);

}


/* =========================================================
   TOGGLE CARDS
========================================================= */

.toggle-card {

    min-height: 64px;

    padding:
        14px 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--bg-secondary);

}


.toggle-card span {

    color:
        var(--text-secondary);

    font-size: 12px;

    font-weight: 600;

}


/* =========================================================
   SWITCH
========================================================= */

.switch {

    position: relative;

    width: 44px;

    height: 24px;

    flex-shrink: 0;

}


.switch input {

    width: 0;

    height: 0;

    opacity: 0;

}


.slider {

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        #475569;

    cursor: pointer;

    transition:
        0.25s ease;

}


.slider::before {

    content: "";

    position: absolute;

    width: 18px;

    height: 18px;

    left: 3px;

    top: 3px;

    border-radius: 50%;

    background:
        #ffffff;

    transition:
        0.25s ease;

}


.switch input:checked + .slider {

    background:
        var(--success);

}


.switch input:checked + .slider::before {

    transform:
        translateX(20px);

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-btn {

    width: 100%;

    min-height: 50px;

    margin-top: 10px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color:
        #ffffff;

    font-size: 13px;

    font-weight: 800;

    transition:
        all var(--transition);

    box-shadow:
        0 10px 25px rgba(239, 68, 68, 0.16);

}


.submit-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(239, 68, 68, 0.24);

}


.submit-btn .arrow {

    margin-left: 7px;

    transition:
        transform var(--transition);

}


.submit-btn:hover .arrow {

    display: inline-block;

    transform:
        translateX(4px);

}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-container {

    display: flex;

    flex-direction: column;

    gap: 15px;

    position: sticky;

    top: 100px;

}


/* =========================================================
   CARDS
========================================================= */

.card {

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

}


.header-line {

    display: flex;

    align-items: center;

}


.card-tag {

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


/* =========================================================
   FEE CARD
========================================================= */

.price-value {

    margin-top: 18px;

    color:
        var(--text);

    font-size: 38px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.04em;

}


.partner-type {

    margin-top: 8px;

    color:
        var(--accent);

    font-size: 13px;

    font-weight: 700;

}


.description {

    margin-top: 12px;

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.65;

}


/* =========================================================
   FEATURES
========================================================= */

.features-list {

    margin-top: 18px;

    padding: 0;

    list-style: none;

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.features-list li {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.55;

}


.icon-check {

    width: 16px;

    height: 16px;

    flex-shrink: 0;

    margin-top: 1px;

    color:
        var(--success);

}


/* =========================================================
   FOOTER CARD
========================================================= */

.footer-card {

    padding:
        16px 22px;

}


.grievance-text {

    color:
        var(--text-muted);

    font-size: 10px;

}


.grievance-link {

    color:
        var(--accent);

    font-weight: 600;

}


.grievance-link:hover {

    text-decoration:
        underline;

}


/* =========================================================
   LIGHT MODE — SPECIFIC FIXES
========================================================= */

body.light .form-container,
body.light .card,
body.light .partner-card,
body.light .toggle-card,
body.light .dropdown-menu {

    background:
        #ffffff;

}


body.light .partner-card {

    color:
        #111827;

}


body.light .partner-card:hover {

    background:
        #f8fafc;

}


body.light .partner-card.active {

    background:
        rgba(2, 132, 199, 0.07);

}


body.light .input-group input,
body.light .input-group textarea,
body.light .input-group select,
body.light .chip {

    background:
        #ffffff;

}


body.light .dropdown-btn {

    background:
        #ffffff;

}


body.light .theme-toggle {

    background:
        #ffffff;

}


body.light .main-heading,
body.light .logo-text h1,
body.light .price-value,
body.light .partner-title,
body.light .dropdown-title h4,
body.light .dropdown-item h5,
body.light .dropdown-item > span,
body.light .toggle-card span,
body.light .sub-header-title {

    color:
        #111827;

}


body.light .banner-description,
body.light .description {

    color:
        #64748b;

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .navbar {

        padding:
            0 25px;

    }


    .layout-wrapper {

        grid-template-columns:
            1fr;

    }


    .sidebar-container {

        position: static;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .footer-card {

        grid-column:
            1 / -1;

    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET
========================================================= */

@media (max-width: 760px) {

    .navbar {

        min-height: 70px;

        padding:
            0 18px;

    }


    .logo-text p {

        display: none;

    }


    .logo-text h1 {

        font-size: 19px;

    }


    .nav-right {

        gap: 8px;

    }


    .dropdown-btn {

        width: 42px;

        padding:
            0;

    }


    .dropdown-btn > span:not(.status-dot) {

        display: none;

    }


    .dropdown-btn .arrow {

        display: none;

    }


    .dropdown-menu {

        right: -55px;

        width:
            min(340px, calc(100vw - 30px));

    }


    .btn-signin {

        width: 42px;

        padding:
            0;

    }


    .btn-signin span {

        display: none;

    }


    .banner-section {

        padding:
            60px 20px 50px;

    }


    .page-container {

        padding:
            30px 18px 60px;

    }


    .form-container {

        padding:
            22px;

    }


    .partner-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .input-group.half-width {

        width: 100%;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 560px) {

    .navbar {

        padding:
            0 14px;

        gap: 10px;

    }


    .logo {

        gap: 8px;

    }


    .logo-icon {

        width: 38px;

        height: 38px;

        font-size: 16px;

    }


    .logo-text h1 {

        font-size: 18px;

    }


    .nav-right {

        gap: 6px;

    }


    .theme-toggle,
    .btn-signin,
    .dropdown-btn {

        width: 38px;

        height: 38px;

        min-height: 38px;

    }


    .banner-section {

        padding:
            48px 18px 42px;

    }


    .main-heading {

        font-size:
            clamp(30px, 9vw, 42px);

    }


    .banner-description {

        font-size: 13px;

        line-height: 1.65;

    }


    .page-container {

        padding:
            22px 12px 45px;

    }


    .form-container {

        padding:
            18px;

        border-radius:
            12px;

    }


    .form-grid.col-2 {

        grid-template-columns:
            1fr;

        gap: 0;

        margin-bottom: 0;

    }


    .partner-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 9px;

    }


    .partner-card {

        min-height: 112px;

        padding:
            15px 8px;

    }


    .partner-title {

        font-size: 11px;

    }


    .partner-price {

        font-size: 9px;

    }


    .sidebar-container {

        grid-template-columns:
            1fr;

    }


    .footer-card {

        grid-column:
            auto;

    }


    .dropdown-menu {

        position: fixed;

        top: 70px;

        right: 12px;

        width:
            calc(100vw - 24px);

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .logo-text {

        display: none;

    }


    .partner-grid {

        grid-template-columns:
            1fr;

    }


    .dropdown-menu {

        top: 65px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline:
        2px solid var(--accent);

    outline-offset:
        2px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition:
            none !important;

        animation:
            none !important;

    }

}