/* Azure standalone layout for the membership flow entered from /v2
   (?ui=v2). Replaces the v1 chrome entirely: slim azure header, gradient
   banner, Azure-styled form controls. Loads after site.css (the form body
   markup still uses v1 classes) and overrides what shows. */
@font-face {
    font-family: "Sora";
    src: url("/fonts/sora.woff2?v=2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Sora";
    src: url("/fonts/sora-ext.woff2?v=2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
body.azure-flow {
    font-family: "Sora", system-ui, sans-serif;
    background: #fff;
    color: #22303e;
}
.az-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.az-head { background: #0d47a1; box-shadow: 0 2px 18px rgba(13,71,161,0.25); }
.az-head .az-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 1.5rem; }
.az-mark { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.az-mark img { height: 44px; width: auto; display: block; }
.az-mark span { color: #fff; font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.az-back { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.az-back:hover { color: #fff; }
.az-banner {
    background: linear-gradient(160deg, #0d47a1, #1565c0);
    color: #fff; padding: 3rem 0 3.4rem;
}
.az-eyebrow {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
    text-transform: uppercase; color: #9fd3da; display: block; margin-bottom: 0.8rem;
}
.az-banner h1 { margin: 0; font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
.azure-flow main { padding: 2.5rem 0 4rem; }
.az-foot { background: #0d47a1; color: #a9c4e8; padding: 1.6rem 0 2rem; font-size: 0.85rem; margin-top: 3rem; }
.az-foot a { color: #cfe0f5; }

/* Azure-ise the v1 form markup */
.azure-flow .section-title { color: #0d47a1; text-transform: none; letter-spacing: -0.01em; }
.azure-flow .section-title::after { background: #26a6b5; }
.azure-flow .button { background: #1565c0; border-color: #1565c0; border-radius: 999px; font-weight: 700; }
.azure-flow .button:hover { background: #0d47a1; }
.azure-flow .card {
    border: none; border-radius: 18px;
    box-shadow: 0 8px 30px rgba(13,71,161,0.07);
}
.azure-flow .card-title { background: none; border-bottom: none; color: #0d47a1; font-weight: 800; }
.azure-flow input, .azure-flow select, .azure-flow textarea {
    border: 1.5px solid #dbe7f2; border-radius: 12px; font-family: inherit;
}
.azure-flow input:focus, .azure-flow select:focus {
    outline: 3px solid #26a6b5; border-color: #26a6b5;
}
.azure-flow .chip { border-radius: 999px; }
.azure-flow .email-panel { background: #f2f7fc; border-radius: 18px; border: none; }
.azure-flow .help-box { background: #e3eefb; border-radius: 14px; border: none; }
.azure-flow .flash { border-radius: 12px; }

/* Portal nav in the azure header */
.az-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; }
.az-nav a { color: rgba(255,255,255,0.82); text-decoration: none; padding: 0.3rem 0; }
.az-nav a:hover { color: #fff; }
.az-logout {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff; border-radius: 999px; padding: 0.4rem 1.1rem;
    font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.az-logout:hover { background: rgba(255,255,255,0.12); }
.azure-flow.portal .portal-main { padding-top: 2.2rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .az-nav { gap: 0.9rem; font-size: 0.78rem; } }

/* Auth pages (login / forgot / reset) */
.azure-flow .auth-box { max-width: 420px; }
.azure-flow .auth-box h1 { color: #0d47a1; font-weight: 800; letter-spacing: -0.01em; }
.azure-flow .auth-logo { border-radius: 14px; }

/* ── Registration form: light Azure card instead of the v1 slate panel ── */
.azure-flow .section-title { display: none; }   /* banner already titles the page */
.azure-flow .reg-panel {
    background: #fff;
    color: #22303e;                 /* v1 slate panel set white text */
    border-radius: 20px;
    padding: 2.4rem;
    box-shadow: 0 12px 40px rgba(13, 71, 161, 0.10);
}
.azure-flow .reg-panel h3 {
    color: #0d47a1; font-weight: 800; font-size: 1.3rem;
    letter-spacing: -0.01em; margin-bottom: 1.4rem;
}
.azure-flow .reg-form label { color: #22303e; font-size: 0.88rem; font-weight: 600; }
.azure-flow .reg-form input,
.azure-flow .reg-form select,
.azure-flow .reg-form textarea {
    border: 1.5px solid #dbe7f2; background: #fff;
    padding: 0.7rem 0.95rem; border-radius: 12px;
}
.azure-flow .reg-form ::placeholder { color: #9fb0c2; }
.azure-flow .reg-grid { gap: 0.4rem 1.6rem; }
.azure-flow .captcha-row label {
    background: #e3eefb; color: #0d47a1; font-weight: 700;
    border-radius: 12px;
}
.azure-flow .reg-form .certify { font-weight: 400; color: #647689; font-size: 0.9rem; }
.azure-flow .reg-form .certify input { accent-color: #1565c0; width: 1.05rem; height: 1.05rem; }
.azure-flow .reg-form .button {
    margin-top: 1.4rem; padding: 0.85rem 2.6rem;
    font-size: 1rem; font-weight: 700;
}
.azure-flow .reg-note { color: #647689; margin-top: 1rem; font-size: 0.9rem; }

/* Aside: quiet azure info card */
.azure-flow .reg-aside {
    border-radius: 20px; box-shadow: 0 12px 40px rgba(13, 71, 161, 0.08);
    padding: 2rem;
}
.azure-flow .reg-aside hr { border: none; border-top: 1.5px solid #dbe7f2; margin: 1.2rem 0; }
.azure-flow .reg-aside h3 { color: #0d47a1 !important; font-weight: 800; }
.azure-flow .reg-aside h4 { color: #22303e; }
.azure-flow .reg-aside p { color: #647689; font-size: 0.94rem; }
.azure-flow .reg-aside p strong { color: #0d47a1; }
.azure-flow .help-box { font-size: 0.88rem; color: #22303e; }
.azure-flow .reg-columns { gap: 2.2rem; align-items: start; }

/* Email-gate step polish */
.azure-flow .email-panel h3 { color: #0d47a1; }
.azure-flow .email-gate input { border: 1.5px solid #dbe7f2; border-radius: 999px; padding: 0.8rem 1.2rem; }
.azure-flow .gate-btn { border-radius: 999px; }
.azure-flow .chip-row .chip { background: #e3eefb !important; color: #0d47a1; font-weight: 600; }
.azure-flow .chip-row .chip:hover { background: #1565c0 !important; color: #fff; }

/* Inline submit feedback */
.reg-feedback {
    margin-top: 1.4rem; padding: 0.9rem 1.2rem;
    background: #fdecec; color: #a13030;
    border: 1.5px solid #f0b9b9; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600;
}

/* Outline buttons: azure gave .button a solid blue background, which left
   .button-outline's blue text invisible. Make outline a proper secondary. */
.azure-flow .button-outline {
    background: #fff;
    color: #0d47a1;
    border: 2px solid #1565c0;
}
.azure-flow .button-outline:hover { background: #e3eefb; color: #0d47a1; }

/* Sticky footer: short pages (empty courses, receipts) pin the footer to
   the bottom of the viewport instead of leaving it hanging mid-page. */
body.azure-flow {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.azure-flow main { flex: 1 0 auto; width: 100%; }
.azure-flow .az-foot { margin-top: auto; }

/* Event registration: section chooser */
.evt-sections { display: grid; gap: 0.7rem; }
.evt-section {
    display: grid; grid-template-columns: auto 1fr auto auto;
    gap: 0.9rem; align-items: center;
    background: #f2f7fc; border: 2px solid transparent; border-radius: 14px;
    padding: 0.9rem 1.2rem; cursor: pointer;
}
.evt-section:has(input:checked) { border-color: #1565c0; background: #e3eefb; }
.evt-section.closed { opacity: 0.55; cursor: not-allowed; }
.evt-section input { accent-color: #1565c0; width: 1.1rem; height: 1.1rem; }
.evt-sec-name { font-weight: 700; color: #0d47a1; }
.evt-sec-name small { color: #647689; font-weight: 400; }
.evt-sec-fee { font-weight: 800; color: #0d47a1; font-size: 1.05rem; }
.evt-sec-note { font-size: 0.78rem; color: #647689; }
