/* =========================================================
   APHS & HSI 2025 — Modern Registration Design
   Replace/override the old page styling with this file.
   ========================================================= */

:root {
    --navy: #10233f;
    --navy-2: #17375f;
    --blue: #1478c9;
    --blue-dark: #075a9d;
    --cyan: #21a6d9;
    --ink: #182230;
    --muted: #667085;
    --line: #e4e9f0;
    --surface: #ffffff;
    --soft: #f5f8fc;
    --success: #11875d;
    --danger: #c43d4b;
    --shadow: 0 18px 50px rgba(16, 35, 63, .10);
    --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background: #f4f7fb;
    line-height: 1.6;
}

button, input, select, textarea { font: inherit; }

a { color: inherit; text-decoration: none; }

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- Header ---------- */

.top-strip {
    background: #0a1930;
    color: rgba(255,255,255,.78);
    font-size: 12px;
}

.top-strip-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.top-strip i { color: #64c8ed; margin-right: 6px; }

.main-nav {
    position: relative;
    z-index: 100;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e8edf4;
    box-shadow: 0 5px 25px rgba(16,35,63,.06);
}

.nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    color: var(--navy);
    letter-spacing: -.4px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 1px;
}

.main-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.main-menu > a,
.menu-group > button {
    border: 0;
    background: transparent;
    padding: 12px 9px;
    color: #354256;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.main-menu > a:hover,
.menu-group > button:hover,
.main-menu > a.active {
    color: var(--blue);
}

.main-menu > a.active {
    background: #eaf5ff;
    border-radius: 9px;
}

.menu-group { position: relative; }

.menu-group > button i {
    font-size: 8px;
    margin-left: 3px;
}

.dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .2s ease;
}

.menu-group:hover .dropdown,
.menu-group.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #344054;
    font-size: 12px;
}

.dropdown a:hover {
    background: #f0f7ff;
    color: var(--blue);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: var(--navy);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 385px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(7,29,57,.96), rgba(12,91,145,.80)),
        url("../img/banner.png") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -220px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(255,255,255,.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 65px 0;
}

.eyebrow,
.section-kicker,
.footer-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 30px;
    color: #bdeaff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    margin-bottom: 17px;
}

.hero h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero h1 span { color: #71d2f2; }

.hero p {
    max-width: 590px;
    margin: 18px 0 25px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    font-size: 11px;
}

.hero-meta i { color: #71d2f2; margin-right: 5px; }

/* ---------- Main ---------- */

.registration-section {
    padding: 72px 0 90px;
    background:
        radial-gradient(circle at 5% 10%, rgba(33,166,217,.07), transparent 30%),
        #f5f8fc;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 34px;
    letter-spacing: -1px;
}

.section-kicker {
    color: var(--blue);
}

.section-heading > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.registration-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.info-card,
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card {
    padding: 32px;
    background:
        linear-gradient(160deg, rgba(16,35,63,.98), rgba(17,83,130,.98));
    color: white;
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    right: -80px;
    bottom: -90px;
    border: 30px solid rgba(255,255,255,.04);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: rgba(113,210,242,.13);
    border: 1px solid rgba(113,210,242,.22);
    color: #71d2f2;
    border-radius: 15px;
    font-size: 21px;
}

.info-card h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    line-height: 1.3;
    margin: 23px 0 10px;
}

.info-card > p {
    color: rgba(255,255,255,.70);
    font-size: 12px;
}

.info-list {
    display: grid;
    gap: 15px;
    margin: 28px 0;
}

.info-list div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.84);
    font-size: 12px;
}

.info-list i {
    color: #65d3a8;
    margin-top: 3px;
}

.support-box {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 20px;
    display: grid;
    gap: 3px;
    font-size: 11px;
    color: rgba(255,255,255,.58);
}

.support-box a {
    color: #8adbf5;
    font-weight: 700;
}

.form-card {
    padding: 36px;
}

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
}

.form-card-header h3 {
    margin: 4px 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
}

.secure-badge {
    background: #effaf6;
    color: #08734e;
    border: 1px solid #d3f0e4;
    border-radius: 30px;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Account options ---------- */

.account-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin: 25px 0;
}

.account-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.account-option:hover {
    border-color: #9dcff0;
    background: #f7fbff;
    transform: translateY(-1px);
}

.account-option input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--blue);
}

.option-copy {
    display: grid;
    gap: 2px;
}

.option-copy strong { font-size: 13px; }

.option-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

/* ---------- Fields ---------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field.full { grid-column: 1 / -1; }

.field label {
    display: block;
    margin: 0 0 7px;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 13px;
    pointer-events: none;
}

.modern-input,
.form-control.modern-input {
    width: 100%;
    height: 49px;
    padding: 0 14px 0 42px;
    border: 1px solid #d9e0e8 !important;
    border-radius: 10px !important;
    background: #fbfcfe !important;
    color: var(--ink);
    font-size: 12px;
    outline: 0;
    box-shadow: none !important;
    transition: .2s ease;
}

.modern-input:focus {
    border-color: #55a9dd !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(20,120,201,.09) !important;
}

.form-actions {
    display: flex;
    gap: 11px;
    margin-top: 25px;
}

.btn-primary-modern,
.btn-secondary-modern,
.btn-forgot {
    border: 0;
    border-radius: 10px;
    min-height: 47px;
    padding: 0 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary-modern {
    color: #fff;
    background: linear-gradient(135deg, #1478c9, #0d5c9d);
    box-shadow: 0 8px 20px rgba(20,120,201,.22);
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(20,120,201,.28);
}

.btn-secondary-modern {
    color: #536070;
    background: #eef2f6;
}

.btn-secondary-modern:hover { background: #e3e8ef; }

.forgot-section {
    margin-top: 32px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.forgot-title {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-bottom: 13px;
}

.forgot-title > i {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff5e8;
    color: #c87a19;
    font-size: 13px;
}

.forgot-title div {
    display: grid;
    gap: 1px;
}

.forgot-title strong { font-size: 12px; }

.forgot-title span {
    font-size: 10px;
    color: var(--muted);
}

.forgot-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.forgot-row .modern-input {
    padding-left: 14px;
}

.btn-forgot {
    color: #fff;
    background: var(--navy);
}

/* ---------- Footer ---------- */

.site-footer {
    color: rgba(255,255,255,.72);
    background: #09172c;
    padding: 62px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr;
    gap: 60px;
    padding-bottom: 45px;
}

.footer-brand img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand h3,
.footer-column h4 {
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.footer-brand h3 {
    margin: 0 0 9px;
    font-size: 18px;
}

.footer-brand p,
.footer-column p {
    margin: 0;
    font-size: 11px;
    line-height: 1.9;
    color: rgba(255,255,255,.55);
}

.footer-kicker {
    display: block;
    color: #69c9ec;
    margin-bottom: 6px;
}

.footer-column h4 {
    margin: 0 0 14px;
    font-size: 15px;
}

.footer-column strong { color: #fff; }

.footer-column i {
    width: 18px;
    color: #68c9eb;
}

.manager-logo {
    width: 170px;
    max-height: 65px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,.38);
    font-size: 10px;
}

.footer-bottom a {
    color: rgba(255,255,255,.68);
}

.footer-bottom a:hover { color: #71d2f2; }

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .main-menu > a,
    .menu-group > button { padding-left: 6px; padding-right: 6px; }
    .registration-layout { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .main-menu {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

    .main-menu.is-open { display: block; }

    .main-menu > a,
    .menu-group > button {
        width: 100%;
        display: block;
        text-align: left;
        padding: 11px 12px;
    }

    .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 5px 12px;
    }

    .menu-group.open .dropdown { display: block; }

    .registration-layout { grid-template-columns: 1fr; }
    .info-card { order: 2; }
    .form-card { order: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
    .shell { width: min(100% - 28px, 1180px); }

    .top-strip-inner {
        justify-content: center;
        gap: 12px;
        font-size: 10px;
    }

    .nav-inner { min-height: 70px; }

    .brand img { width: 46px; height: 46px; }
    .brand strong { font-size: 15px; }

    .hero { min-height: 350px; }
    .hero-content { padding: 55px 0; }
    .hero h1 { font-size: 38px; letter-spacing: -1.4px; }

    .hero-meta { display: grid; }

    .registration-section { padding: 50px 0 60px; }

    .section-heading {
        display: block;
        margin-bottom: 25px;
    }

    .section-heading > p { margin-top: 12px; }

    .form-card,
    .info-card { padding: 24px; }

    .account-options,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full { grid-column: auto; }

    .form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .forgot-row { grid-template-columns: 1fr; }

    .btn-forgot { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-brand { grid-column: auto; }

    .footer-bottom {
        display: grid;
        gap: 8px;
    }
    /* ==============================
   Responsive Conference Header
   ============================== */

    .conference-header {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px 15px;
        box-sizing: border-box;
        text-align: center;
        overflow: hidden;
    }

    .conference-header-logo {
        display: block;
        width: 100%;
        max-width: 1200px;
        height: auto;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Tablets */
    @media screen and (max-width: 768px) {
        .conference-header {
            padding: 8px 10px;
        }

        .conference-header-logo {
            width: 100%;
            height: auto;
        }
    }

    /* Mobile phones */
    @media screen and (max-width: 480px) {
        .conference-header {
            padding: 5px;
        }

        .conference-header-logo {
            width: 100%;
            max-width: 100%;
            height: auto;
        }
    }

    /* Very small mobile screens */
    @media screen and (max-width: 320px) {
        .conference-header {
            padding: 3px;
        }

        .conference-header-logo {
            width: 100%;
            height: auto;
        }
    }
}
