/* ==========================================================================
   Anand 
Yuva Sewa Sankalp Sayamsevak — public site styles
   Mobile-first. Breakpoints: 480px (large phone), 768px (tablet/desktop).
   ========================================================================== */

:root {
    --navy: #0a4178;
    --navy-dark: #073260;
    --blue: #1668c4;
    --blue-dark: #0c52a3;
    --orange: #f36c12;
    --orange-light: #ff9330;
    /* Darker orange for surfaces behind white text (WCAG AA contrast). */
    --orange-cta-top: #e2600c;
    --orange-cta-bottom: #c2410c;
    --green: #137a33;
    --green-light: #2eaa4f;
    --red: #c62828;

    --text: #13335a;
    --muted: #5d6f86;
    --page-bg: #e9f0f8;
    --surface: #ffffff;

    --border-blue: #b8d5ef;
    --tint-blue: #f6faff;
    --border-orange: #f7cfa8;
    --tint-orange: #fff6ee;
    --border-green: #bfe1c8;
    --tint-green: #fbfefb;

    --radius-card: 18px;
    --radius-input: 10px;
    --shadow-pill: 0 4px 10px rgba(10, 65, 120, .18);

    --font-display: "Baloo Bhai 2", "Noto Sans Gujarati", "Shruti", system-ui, sans-serif;
    --font-body: "Hind Vadodara", "Noto Sans Gujarati", "Shruti", system-ui, sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Page frame ---------------------------------------------------------- */

.page {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--surface);
    overflow: hidden;
}

@media (min-width: 1120px) {
    .page {
        margin-block: 24px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(10, 65, 120, .12);
    }
}

.main {
    padding: 8px 14px 12px;
}

@media (min-width: 768px) {
    .main {
        padding: 12px 32px 16px;
    }
}

/* ---- Banner -------------------------------------------------------------- */

.hero {
    position: relative;
    container-type: inline-size;
}

.hero__img {
    width: 100%;
    height: auto;
}

.hero__tagline {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(9px, 2vw, 22px);
    font-size: 2cqw;
    line-height: 1.25;
    color: var(--navy);
    white-space: nowrap;
    text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}

.hero__tagline::after {
    content: "";
    width: 55%;
    height: .16em;
    margin-top: .15em;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, var(--orange) 20%, var(--orange-light) 80%, transparent);
}

.hero__sep {
    padding-inline: .35em;
    font-weight: 500;
}

/* ---- Form title ---------------------------------------------------------- */

.form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 22px;
}

.form-title::before,
.form-title::after {
    content: "";
    flex: 1;
    height: 5px;
    background: var(--orange);
}

.form-title::before {
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%);
}

.form-title::after {
    clip-path: polygon(0 0, 100% 45%, 100% 55%, 0 100%);
}

.form-title__pill {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin: 0;
    padding: .2em .8em .1em;
    border-radius: 16px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 6.4vw, 44px);
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: var(--shadow-pill);
}

.form-title__icon {
    width: .85em;
    height: .85em;
    margin-top: -.1em;
}

@media (min-width: 768px) {
    .form-title {
        gap: 16px;
        margin: 20px 0 34px;
    }

    .form-title__icon {
        display: none;
    }
}

/* ---- Cards & section pills ---------------------------------------------- */

.card {
    position: relative;
    margin: 0 0 18px;
    padding: 16px 10px;
    border: 2px solid var(--border-blue);
    border-radius: var(--radius-card);
    background: var(--tint-blue);
}

.card--orange {
    border-color: var(--border-orange);
    background: var(--tint-orange);
}

.card--green {
    border-color: var(--border-green);
    background: var(--tint-green);
}

.card:has(> .card__pill) {
    margin-top: 34px;
    padding-top: 34px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 4px 26px 2px 5px;
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(19px, 5.2vw, 30px);
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: var(--shadow-pill);
}

.pill__icon {
    display: grid;
    place-items: center;
    width: 1.55em;
    height: 1.55em;
    margin-block: -1px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .16);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
    font-size: .95em;
}

.pill__icon .icon {
    width: .85em;
    height: .85em;
}

.pill--blue {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.pill--orange {
    background: linear-gradient(180deg, var(--orange-cta-top) 0%, var(--orange-cta-bottom) 100%);
}

.pill--orange .pill__icon {
    border-radius: 12px;
}

.pill--green {
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 100%);
}

.card__pill {
    position: absolute;
    top: 0;
    left: 10px;
    transform: translateY(-50%);
    max-width: calc(100% - 20px);
}

/* The "Form details" pill only appears in the desktop design. */
.card__pill--desktop {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    box-shadow: none;
}

.card:has(> .card__pill--desktop) {
    margin-top: 0;
    padding-top: 16px;
}

@media (min-width: 768px) {
    .card {
        margin-bottom: 26px;
        padding: 26px 26px;
    }

    .card:has(> .card__pill) {
        margin-top: 44px;
        padding-top: 44px;
    }

    .card__pill {
        left: -2px;
    }

    .card__pill--desktop {
        position: absolute !important;
        width: auto;
        height: auto;
        padding: 4px 26px 2px 5px;
        overflow: visible;
        clip: auto;
        box-shadow: var(--shadow-pill);
    }

    .card:has(> .card__pill--desktop) {
        margin-top: 44px;
        padding-top: 44px;
    }
}

.card--compact.card:has(> .card__pill) {
    padding-bottom: 12px;
}

.card__note {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: clamp(14px, 3.7vw, 19px);
    color: var(--navy);
}

.card__note--required {
    margin-top: 4px;
    font-size: clamp(13px, 3.4vw, 16px);
    color: var(--red);
}

/* ---- Personal detail fields ---------------------------------------------- */

.fields {
    --label-col: 6.3em;
    --input-h: 46px;
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    grid-template-columns: 24px var(--label-col) 6px minmax(0, 1fr);
    align-items: start;
    column-gap: 6px;
}

/* The label's children (icon, text, colon) become grid items of .field. */
.field__label {
    display: contents;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    cursor: pointer;
}

.field__icon,
.field__text,
.field__colon {
    grid-row: 1;
    display: flex;
    align-items: center;
    height: var(--input-h);
}

.field__icon {
    width: 24px;
    height: 24px;
    margin-top: calc((var(--input-h) - 24px) / 2);
    color: var(--navy);
}

.field__text {
    white-space: nowrap;
    padding-top: 3px;
}

.field__control {
    grid-row: 1;
    grid-column: 4;
    min-width: 0;
}

.input {
    width: 100%;
    height: var(--input-h);
    padding: 8px 10px;
    border: 1.5px solid #7f9dbd;
    border-radius: var(--radius-input);
    background: #fff;
    font-size: 16px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}

.input::placeholder {
    color: #6b7a8c;
    opacity: 1;
}

/* College dropdown styled like the text inputs. */
.input--select {
    padding-right: 38px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4178' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px 18px;
    text-overflow: ellipsis;
    cursor: pointer;
}

.input--select:invalid {
    color: #6b7a8c;
}

.input--select option {
    color: var(--text);
}

/* Gender: pill-shaped radio buttons */
.choice-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: var(--input-h);
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 16px 4px 12px;
    border: 1.5px solid #7f9dbd;
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.choice:hover {
    border-color: var(--blue);
}

.choice:has(input:checked) {
    border-color: var(--blue);
    background: #e9f2fc;
    color: var(--navy);
}

.choice:has(input:focus-visible) {
    box-shadow: 0 0 0 4px rgba(22, 104, 196, .18);
}

.has-error .choice {
    border-color: var(--red);
}

@media (forced-colors: active) {
    .choice:has(input:checked) {
        outline: 2px solid Highlight;
    }
}

/* Phones: the college search results use the full width of the field row, not just the narrow input. */
@media (max-width: 767px) {
    .field:has(.cpick) {
        position: relative;
    }

    .field .cpick {
        position: static;
    }

    .field .cpick__list {
        top: calc(var(--input-h) + 2px);
        margin-top: 0;
        border-radius: 10px;
    }

    .field .cpick.is-open .cpick__input {
        border-radius: var(--radius-input);
    }
}

.input:hover {
    border-color: var(--blue);
}

.input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22, 104, 196, .18);
}

.field__req {
    margin-left: 2px;
    color: var(--red);
}

/* Mobile number with fixed +91 prefix */
.input-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-input);
    transition: box-shadow .15s;
}

.input-group__prefix {
    display: flex;
    align-items: center;
    flex: none;
    padding: 0 10px;
    border: 1.5px solid #7f9dbd;
    border-right: 0;
    border-radius: var(--radius-input) 0 0 var(--radius-input);
    background: #eef4fb;
    font-weight: 700;
    color: var(--navy);
    user-select: none;
}

.input-group .input {
    min-width: 0;
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
    letter-spacing: .03em;
}

.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(22, 104, 196, .18);
}

.input-group:focus-within .input-group__prefix {
    border-color: var(--blue);
}

.input-group .input:focus {
    box-shadow: none;
}

.has-error .input-group__prefix {
    border-color: var(--red);
    background: #fdeeee;
}

.has-error .input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, .16);
}

.field__error {
    margin: 4px 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--red);
}

.field__error:empty {
    display: none;
}

.has-error .input {
    border-color: var(--red);
    background: #fffafa;
}

.has-error .input:focus {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, .16);
}

/* Very small phones: put the label above the input. */
@media (max-width: 379px) {
    .field {
        grid-template-columns: 24px minmax(0, 1fr);
        row-gap: 2px;
    }

    .field__icon,
    .field__text {
        height: auto;
        margin-top: 0;
    }

    .field__icon {
        width: 20px;
        height: 20px;
        align-self: center;
    }

    .field__colon {
        display: none;
    }

    .field__control {
        grid-row: 2;
        grid-column: 1 / -1;
    }
}

/* Tablet & desktop: 2 × 2 grid (Name, College | Course, Mobile), no icons. */
@media (min-width: 768px) {
    .fields {
        --input-h: 50px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        column-gap: 0;
        row-gap: 18px;
    }

    .field {
        --label-col: 4.2em;
        grid-template-columns: var(--label-col) 14px minmax(0, 1fr);
        padding-right: 26px;
    }

    .field:nth-child(n + 3) {
        --label-col: 6.6em;
        padding: 0 0 0 26px;
        border-left: 1.5px solid var(--border-blue);
    }

    /* Gender: a full-width third row under the two columns. */
    .field.field--gender {
        --label-col: 4.2em;
        grid-row: 3;
        grid-column: 1 / -1;
        padding: 0;
        border-left: 0;
    }

    .field__icon {
        display: none;
    }

    .field__label {
        font-size: 17px;
    }

    .field__control {
        grid-column: 3;
    }

    .input {
        padding-inline: 14px;
    }
}

/* ---- Activities ---------------------------------------------------------- */

.activities {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* Phones: one activity per line, so every row reads straight across. */
.activities__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.activities__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    break-inside: avoid;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--text);
}

.activities__item + .activities__item {
    border-top: 1px solid var(--border-green);
}

.activities__item label {
    display: flex;
    gap: 2px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.activities__num {
    flex: none;
    min-width: 1.45em;
    font-weight: 500;
}

.activities__item:has(.checkbox:checked) label {
    color: var(--green);
    font-weight: 600;
}

/* Very narrow phones: shrink a touch so the longest name still fits one line. */
@media (max-width: 374px) {
    .activities__item {
        gap: 6px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .activities__list {
        columns: 3;
        column-gap: 28px;
        column-rule: 1.5px solid var(--border-green);
    }

    .activities__item {
        gap: 12px;
        padding: 6px 0;
        font-size: 16px;
    }

    .activities__item + .activities__item {
        border-top: 0;
    }

    .activities__item label {
        gap: 4px;
        padding-top: 1px;
    }

    .activities__num {
        min-width: 1.6em;
    }

    .activities__item .checkbox {
        width: 22px;
        height: 22px;
    }
}

/* Custom checkbox (still a real, keyboard-accessible input). */
.checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    display: grid;
    place-content: center;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 2px solid var(--navy);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.checkbox::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 23%, 85% 9%, 39% 70%);
    transform: scale(0);
    transition: transform .12s ease-in-out;
}

.checkbox:checked {
    border-color: var(--green);
    background: var(--green);
}

.checkbox:checked::before {
    transform: scale(1);
}

.checkbox:focus-visible {
    outline: 3px solid rgba(22, 104, 196, .45);
    outline-offset: 2px;
}

.card--green.has-error {
    border-color: #e9a5a5;
}

.field__error--block {
    margin-top: 10px;
    text-align: center;
}

/* ---- Alerts -------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.alert:focus {
    outline: none;
}

.alert p {
    margin: 0;
}

.alert .icon {
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.alert--error {
    border: 1.5px solid #f0b4b4;
    background: #fff1f1;
    color: var(--red);
}

/* ---- Submit -------------------------------------------------------------- */

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 6px 0 8px;
}

.form-actions__count {
    margin: 0;
    min-height: 1.5em;
    font-weight: 600;
    color: var(--green);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: min(100%, 280px);
    padding: 12px 36px 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--orange-cta-top) 0%, var(--orange-cta-bottom) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(243, 108, 18, .35);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(194, 65, 12, .42);
    filter: brightness(.95);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

.btn-submit[disabled] {
    cursor: progress;
    opacity: .75;
    transform: none;
}

.btn-submit .icon {
    width: 22px;
    height: 22px;
}

.btn-submit--outline {
    background: #fff;
    color: var(--orange-cta-bottom);
    border: 2px solid var(--orange-cta-bottom);
    box-shadow: none;
}

.btn-submit--outline:hover {
    background: var(--tint-orange);
    box-shadow: none;
}

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

.site-footer__img {
    width: 100%;
    height: auto;
}

/* Copyright bar — continues the navy wave at the bottom of the footer artwork. */
.site-footer__copyright {
    position: relative;
    margin: -6px 0 0; /* covers the thin white edge at the bottom of the footer artwork */
    padding: 10px 16px 12px;
    background: #0b4a8b;
    color: #e8f0fa;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.copyright__dev {
    white-space: nowrap;
}

.site-footer__copyright a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__copyright a:hover,
.site-footer__copyright a:focus-visible {
    color: #ffc58a;
}

.site-footer__copyright a:focus-visible {
    outline: 2px solid #ffc58a;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- Success page -------------------------------------------------------- */

.success {
    max-width: 720px;
    margin: 24px auto 20px;
    padding: 28px 18px;
    text-align: center;
}

.success__badge {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--green-light), var(--green));
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 138, 58, .3);
}

.success__badge .icon {
    width: 40px;
    height: 40px;
}

.success__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 6vw, 38px);
    line-height: 1.3;
    color: var(--navy);
}

.success__lead {
    margin: 4px 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--green);
}

.success__reg {
    display: inline-flex;
    flex-direction: column;
    margin: 0 0 18px;
    padding: 8px 26px;
    border: 2px dashed var(--border-blue);
    border-radius: 14px;
    background: var(--tint-blue);
}

.success__reg span {
    font-size: 14px;
    color: var(--muted);
}

.success__reg strong {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: .04em;
    color: var(--navy);
}

.success__details {
    display: grid;
    gap: 6px;
    margin: 0 auto 18px;
    max-width: 460px;
    text-align: left;
}

.success__details div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e3ecf5;
}

.success__details dt {
    font-weight: 700;
    color: var(--navy);
}

.success__details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.success__subtitle {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
}

.success__activities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.success__activities li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 3px 8px;
    border-radius: 999px;
    background: #e8f6ec;
    color: var(--green);
    font-weight: 600;
    font-size: 15px;
}

.success__activities .icon {
    width: 16px;
    height: 16px;
}

.success__footnote {
    margin: 0 0 20px;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ---- Windows High Contrast / forced colors ------------------------------- */

@media (forced-colors: active) {
    .checkbox {
        forced-color-adjust: none;
        border-color: CanvasText;
        background: Canvas;
    }

    .checkbox:checked {
        border-color: Highlight;
        background: Highlight;
    }

    .checkbox::before {
        background: HighlightText;
    }

    .checkbox:focus-visible {
        outline-color: Highlight;
    }

    .pill,
    .form-title__pill {
        border: 2px solid CanvasText;
        background: Canvas;
    }
}

/* ---- Already registered (page + dialog) ---------------------------------- */

.field__link {
    margin: 4px 2px 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.success__badge--warning {
    background: #fde3d2;
    color: #fff;
    box-shadow: none;
}

.success__badge--warning .icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 50%;
    background: var(--orange-cta-top);
    box-sizing: border-box;
}

.success--existing .success__title {
    font-size: clamp(22px, 5vw, 32px);
}

.success__lead--warning {
    color: var(--orange-cta-bottom);
}

.status-pill {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    background: #fff0e0;
    color: #b5530b;
}

.status-pill--active,
.status-pill--approved { background: #e3f5e9; color: #1b7a3c; }
.status-pill--rejected { background: #fde6e6; color: #bd2626; }
.status-pill--inactive { background: #efe9fd; color: #5b37bd; }

body.reg-dialog-open { overflow: hidden; }

.reg-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(40, 52, 72, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: reg-fade .16s ease-out;
}

.reg-dialog {
    position: relative;
    width: min(540px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 30px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 30, 60, .35);
    text-align: center;
    animation: reg-pop .2s cubic-bezier(.2, .9, .3, 1.2);
}

.reg-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #3a4a5e;
    cursor: pointer;
}

.reg-dialog__close svg { width: 18px; height: 18px; }

.reg-dialog__badge { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }

.reg-dialog__icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #fde3d2;
    color: #fff;
}

.reg-dialog__icon svg {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 50%;
    background: var(--orange-cta-top);
    box-sizing: border-box;
}

.reg-dialog__rays { position: relative; width: 16px; height: 24px; background: linear-gradient(#f39a26, #f39a26) center / 14px 3px no-repeat; }
.reg-dialog__rays::before,
.reg-dialog__rays::after { content: ""; position: absolute; left: 0; width: 16px; height: 3px; border-radius: 2px; background: #f39a26; }
.reg-dialog__rays::before { top: 2px; }
.reg-dialog__rays::after { bottom: 2px; }
.reg-dialog__rays--left::before, .reg-dialog__rays--right::after { transform: rotate(28deg); }
.reg-dialog__rays--left::after, .reg-dialog__rays--right::before { transform: rotate(-28deg); }

.reg-dialog__title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.reg-dialog__title-gu { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 30px); line-height: 1.2; color: #0f2a4f; }
.reg-dialog__title-en { font-weight: 600; font-size: 16px; color: #3a4a5e; }

.reg-dialog__rule {
    display: block;
    width: 92px;
    height: 3px;
    margin: 10px auto 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f58a1f 0 50%, #2e9a46 50% 100%);
}

.reg-dialog__box { padding: 14px 16px; border-radius: 12px; background: #eef4fb; text-align: left; }
.reg-dialog__msg { margin: 0 0 10px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; color: #14294a; }
.reg-dialog__code { color: #0f5fd1; white-space: nowrap; }

.reg-dialog__details { display: grid; gap: 0; margin: 0; }
.reg-dialog__details div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid #dbe6f2; }
.reg-dialog__details div:last-child { border-bottom: 0; }
.reg-dialog__details dt { font-weight: 700; color: var(--navy); }
.reg-dialog__details dd { margin: 0; overflow-wrap: anywhere; }
.reg-dialog__number { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .03em; color: #0f5fd1; }

.reg-dialog__subtitle { margin: 10px 0 6px; font-weight: 700; color: var(--navy); }
.reg-dialog__activities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.reg-dialog__activities li { padding: 2px 10px; border-radius: 999px; background: #e3f5e9; color: #1b7a3c; font-weight: 600; font-size: 14px; }

.reg-dialog__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }

.reg-dialog__btn {
    min-width: 140px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.reg-dialog__btn--cancel { border: 1.5px solid #c9d5e3; background: #f7f9fc; color: #14294a; }
.reg-dialog__btn--ok { border: 0; background: linear-gradient(180deg, #1b6fe0, #0b54c4); color: #fff; box-shadow: 0 8px 18px rgba(11, 84, 196, .3); }
.reg-dialog__btn:focus-visible, .reg-dialog__close:focus-visible { outline: 3px solid rgba(22, 104, 196, .45); outline-offset: 3px; }

.reg-dialog__note { margin: 0; padding-top: 12px; border-top: 1px solid #e3e9f1; font-size: 14px; color: #5f7189; }

@keyframes reg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reg-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
    .reg-dialog { padding: 24px 16px 16px; }
    .reg-dialog__details div { grid-template-columns: 6.5em 1fr; }
    .reg-dialog__btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .reg-dialog-backdrop, .reg-dialog { animation: none; }
}
