@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap);

:root {
    --edugo-purple: #0057B8;
    --edugo-purple-dark: #002B75;
    --edugo-pink: #E8245B;
    --edugo-orange: #F6A623;
    --edugo-gold: #FFD166;
    --edugo-ink: #10203A;
    --edugo-muted: #5B6B82;
    --edugo-line: #DFE8F7;
    --edugo-bg: #F3F7FF;
    --edugo-card: #ffffff;
    --edugo-radius: 24px;
    --edugo-shadow: 0 18px 55px rgba(0, 52, 134, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto, Helvetica, sans-serif;
    margin: 0;
    color: var(--edugo-ink);
    background:
        radial-gradient(circle at top left, rgba(247,166,0,.16), transparent 32%),
        radial-gradient(circle at top right, rgba(0,87,184,.16), transparent 35%),
        linear-gradient(180deg, #fbfbff 0%, var(--edugo-bg) 45%, #ffffff 100%);
    line-height: 1.65;
}

a {
    color: var(--edugo-purple);
    text-decoration: none;
    transition: all .2s ease;
}

a:hover {
    color: var(--edugo-pink);
}

#wrap {
    width: min(1140px, calc(100% - 28px));
    margin: 18px auto;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 28px;
    box-shadow: var(--edugo-shadow);
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.text-center {
    text-align: center;
}

.text-orange {
    color: var(--edugo-orange) !important;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.container-fluid {
    padding: 0 32px;
}

.header {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0,87,184,.95), rgba(232,36,91,.92)),
        linear-gradient(135deg, var(--edugo-purple), var(--edugo-pink));
}

.header::before,
.header::after {
    position: absolute;
    content: "";
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    pointer-events: none;
}

.header::before {
    left: -90px;
    top: -110px;
}

.header::after {
    right: -100px;
    bottom: -160px;
}

.header .row {
    position: relative;
    z-index: 1;
}

.title_page {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.title_page::after {
    display: block;
    width: 82px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--edugo-gold), #fff0b8);
    content: "";
}

.logo {
    display: flex;
    justify-content: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 70px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.logo img {
    max-height: 58px;
    object-fit: contain;
}

.banner {
    padding: 22px 32px 0;
    background: linear-gradient(180deg, #fff 0%, #F2F7FF 100%);
}

.banner img {
    display: block;
    width: 100% !important;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(0, 70, 160, .16);
}

.banner_caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: #fff;
}

.banner_caption h2 {
    font-size: 34px;
}

.banner_caption h1 {
    font-size: 38px;
}

.banner_caption h2:first-child {
    border-bottom: 2px solid #fff;
    padding-bottom: 30px;
    margin: 0;
}

.main {
    background: linear-gradient(180deg, #fff 0%, #F6FAFF 100%);
}

.main-content {
    position: relative;
    margin: 28px 0;
    padding: 34px 38px;
    overflow: hidden;
    font-size: 18px;
    background: var(--edugo-card);
    border: 1px solid var(--edugo-line);
    border-radius: var(--edugo-radius);
    box-shadow: 0 18px 42px rgba(0, 64, 145, .08);
}

.main-content::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--edugo-purple), var(--edugo-pink), var(--edugo-orange));
    content: "";
}

.main-content p {
    margin: 12px 0;
}

.main-content b {
    color: #082A6F;
}

.code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 24px;
    padding: 14px 18px;
    color: var(--edugo-purple);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    border: 1px dashed rgba(0,87,184,.35);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,87,184,.08), rgba(247,166,0,.08));
}

.form-control {
    display: inline-block;
    min-width: 250px;
    max-width: 100%;
    min-height: 34px;
    padding: 3px 10px;
    color: var(--edugo-ink);
    font-size: 18px;
    line-height: 1.4;
    vertical-align: baseline;
    background: #fff;
    border: 0;
    border-bottom: 2px dashed rgba(0,87,184,.36);
    border-radius: 8px 8px 0 0;
    outline: none;
    transition: all .2s ease;
}

span.form-control {
    min-height: 34px;
}

.form-control:focus {
    border-bottom-color: var(--edugo-pink);
    box-shadow: 0 8px 18px rgba(232,36,91,.08);
}

.code .form-control {
    min-width: unset;
    width: 135px !important;
    color: var(--edugo-purple);
    font-weight: 900;
    text-align: center;
    background: rgba(255,255,255,.78);
    border-color: rgba(0,87,184,.45);
}

.grid {
    display: flex;
    justify-content: center;
}

.grid_item {
    width: 42px;
    height: 42px;
    margin: 0 4px 6px 0;
    padding: 2px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,87,184,.18);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,38,95,.08);
}

.grid_item input {
    width: 100%;
    height: 100%;
    max-width: 100%;
    color: var(--edugo-purple-dark);
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
}

.major-grid,
.info-list,
.specialized-options {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.major-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.major-item,
.info-item,
.specialized-options .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 14px;
    color: #10203A;
    background: linear-gradient(180deg, #ffffff 0%, #F7FBFF 100%);
    border: 1px solid rgba(0,87,184,.12);
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(0,55,135,.06);
}

.major-item::before,
.info-item::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--edugo-purple), var(--edugo-pink));
    content: "✓";
}

.info-list {
    grid-template-columns: 1fr;
}

.specialized-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specialized-options .checkbox {
    margin: 0;
}

.specialized-options .checkbox label {
    cursor: pointer;
    transition: all .2s ease;
}

.specialized-options .checkbox label:hover {
    transform: translateY(-2px);
    border-color: rgba(232,36,91,.28);
    box-shadow: 0 14px 30px rgba(0,55,135,.1);
}

.specialized-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--edugo-pink);
}

.scholarship {
    padding: 26px;
}

.scholarship_bg {
    position: relative;
    min-height: 238px;
    padding: 26px 18px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(160deg, #0057B8 0%, #006FE6 55%, #E8245B 100%);
    box-shadow: 0 16px 34px rgba(0,87,184,.18);
}

.scholarship_bg::after {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    content: "";
}

.scholarship p {
    font-size: 16px;
    font-weight: bold;
}

.btn-action {
    padding: 24px 0 12px;
    background: linear-gradient(180deg, #EFF6FF 0%, #fff 100%);
    border-top: 1px solid var(--edugo-line);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    margin-bottom: 15px;
    color: #10203A;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    letter-spacing: .2px;
    background: #eee;
    border: none;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: all .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,38,95,.16);
}

.btn-violet {
    color: #fff;
    background: linear-gradient(135deg, var(--edugo-purple), var(--edugo-pink));
    box-shadow: 0 12px 26px rgba(232,36,91,.24);
}

.btn-violet:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--edugo-purple-dark), var(--edugo-pink));
}

.top-footer,
.bot-footer {
    margin-bottom: 0;
    padding: 22px 0;
}

.top-footer {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(247,166,0,.22), transparent 30%),
        linear-gradient(135deg, var(--edugo-purple-dark), var(--edugo-purple));
}

.top-footer h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
}

.top-footer img {
    max-height: 62px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
}

.bot-footer {
    color: rgba(255,255,255,.92);
    background: #082A6F;
}

.bot-footer p {
    margin: 6px 0;
    font-size: 17px;
}

.text-gold {
    font-weight: bold;
    background-image: linear-gradient(
        to right,
        #F0B429 0,
        #FFD166 22%,
        #FFDA76 45%,
        #FFE8A3 50%,
        #FFDA76 55%,
        #FFD166 78%,
        #F0B429 100%
    );
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.border-gold {
    position: relative;
    display: inline-block;
}

.border-gold::after {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(
        to right,
        #B7791F 0,
        #FFD166 22%,
        #FFDA76 45%,
        #FFE8A3 50%,
        #FFDA76 55%,
        #FFD166 78%,
        #B7791F 100%
    );
    content: "";
}

@media (min-width:576px) {
    .grid_item {
        width: 46px;
        height: 46px;
    }
}

@media (max-width:767px) {
    #wrap {
        width: min(100% - 16px, 1140px);
        margin: 8px auto;
        border-radius: 20px;
    }

    .container-fluid {
        padding: 0 16px;
    }

    .header {
        padding: 18px 0;
    }

    .title_page {
        text-align: center;
    }

    .title_page::after {
        margin-left: auto;
        margin-right: auto;
    }

    .logo {
        margin-top: 14px;
    }

    .banner {
        padding: 14px 14px 0;
    }

    .banner img {
        border-radius: 16px;
    }

    .main-content {
        padding: 26px 18px;
        font-size: 16px;
        border-radius: 18px;
    }

    .code {
        display: flex;
        flex-wrap: wrap;
        font-size: 18px;
    }

    .form-control {
        width: 100%;
        min-width: 0;
        margin-top: 4px;
    }

    .d-flex.justify-content-between {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .major-grid,
    .specialized-options {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .top-footer,
    .bot-footer {
        text-align: center;
    }
}

@media (max-width:575px) {
    .banner_caption {
        text-align: center;
    }

    .banner_caption h1 {
        font-size: 30px;
    }

    .banner_caption h2 {
        font-size: 26px;
    }

    .scholarship {
        padding: 18px 0;
    }
}

@media print {
    body {
        background: #fff;
    }

    #wrap {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header,
    .btn-action,
    .footer {
        display: none !important;
    }

    .banner {
        padding: 0;
    }

    .banner img,
    .main-content {
        border-radius: 0;
        box-shadow: none;
    }

    .main-content {
        margin: 0;
        border: 0;
        font-size: 16px;
    }
}


/* EHoldings brand sync override: xanh dương chủ đạo, đỏ hồng điểm nhấn, vàng cam CTA phụ */
:root {
    --eh-blue: #0057B8;
    --eh-blue-dark: #002B75;
    --eh-navy: #071B4D;
    --eh-sky: #00A3E0;
    --eh-red: #E8245B;
    --eh-gold: #FFD166;
}

body {
    background:
        radial-gradient(circle at top left, rgba(246,166,35,.14), transparent 30%),
        radial-gradient(circle at top right, rgba(0,87,184,.16), transparent 36%),
        linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 48%, #ffffff 100%);
}

.header {
    background:
        radial-gradient(circle at 8% 0%, rgba(255,255,255,.16), transparent 26%),
        linear-gradient(135deg, var(--eh-blue-dark) 0%, var(--eh-blue) 58%, #0071E3 100%);
}

.logo a {
    border: 1px solid rgba(0,87,184,.12);
}

.title_page::after,
.main-content::before {
    background: linear-gradient(90deg, var(--eh-gold), var(--eh-red), var(--eh-sky));
}

.banner {
    background: linear-gradient(180deg, #ffffff 0%, #F2F7FF 100%);
}

.main {
    background: linear-gradient(180deg, #ffffff 0%, #F6FAFF 100%);
}

.btn,
.btn_confirm,
button,
input[type=submit] {
    background: linear-gradient(135deg, var(--eh-blue) 0%, var(--eh-red) 100%);
    box-shadow: 0 12px 26px rgba(232,36,91,.20);
}

.btn:hover,
.btn_confirm:hover,
button:hover,
input[type=submit]:hover {
    background: linear-gradient(135deg, var(--eh-blue-dark) 0%, var(--eh-red) 100%);
}

.major-item::before,
.info-item::before {
    background: linear-gradient(135deg, var(--eh-blue), var(--eh-sky));
}

.scholarship_bg {
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.22), transparent 32%),
        linear-gradient(160deg, var(--eh-blue-dark) 0%, var(--eh-blue) 58%, var(--eh-red) 100%);
    box-shadow: 0 16px 34px rgba(0,87,184,.18);
}

.top-footer {
    background:
        radial-gradient(circle at top right, rgba(255,209,102,.20), transparent 30%),
        linear-gradient(135deg, var(--eh-navy), var(--eh-blue));
}

.bot-footer {
    background: var(--eh-navy);
}
