/**
 * Public site: landing navigation/footer, followed by the registration portal styles.
 */

:root {
    --brand-green: #166534;
    --brand-green-dark: #0f3d22;
    --brand-green-light: #e8f5ec;
    --brand-green-muted: #9dc4a8;
    --brand-black: #0a0a0a;
    --brand-black-soft: #141414;
    --brand-surface: #ffffff;
    --brand-border: #e5e5e5;
}

html { scroll-behavior: smooth; }

.public-body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: var(--brand-surface);
    color: #111827;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--brand-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.landing-brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) { .landing-brand-logo { width: 2.75rem; height: 2.75rem; } }
@media (min-width: 768px) { .landing-brand-logo { width: 3rem; height: 3rem; } }
@media (min-width: 1024px) { .landing-brand-logo { width: 3.5rem; height: 3.5rem; } }
@media (min-width: 1280px) { .landing-brand-logo { width: 4rem; height: 4rem; } }

.landing-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.15s ease;
}

.landing-nav-link:hover,
.landing-nav-link-active {
    color: var(--brand-green-muted);
}

.landing-nav-link-active { font-weight: 600; }

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: var(--brand-green);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(22, 101, 52, 0.2);
    transition: background-color 0.15s ease;
}

.landing-btn-primary:hover { background: var(--brand-green-dark); color: #fff; }
.landing-btn-primary:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

@media (min-width: 640px) {
    .landing-btn-primary { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
}

.landing-btn-icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.landing-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    padding: 0.5rem 0.65rem;
    color: #d1d5db;
    font-size: 1.25rem;
}

.landing-menu-button:hover { background: rgba(255, 255, 255, 0.1); }

.landing-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--brand-black);
    padding: 1rem 1.5rem;
}

.landing-footer {
    background: var(--brand-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.landing-footer a { color: #9ca3af; text-decoration: none; transition: color 0.15s ease; }
.landing-footer a:hover { color: var(--brand-green-muted); }
.landing-footer-meta { font-size: 0.75rem; color: #9ca3af; }
.landing-footer-meta--muted { color: #6b7280; }
.landing-footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.landing-gradient-text { color: var(--brand-green-muted); }
.landing-gradient-bg { background: var(--brand-green); }
.text-brand-green { color: var(--brand-green); }

.landing-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--brand-border);
    border-radius: 9999px;
    background: #fff;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.landing-btn-secondary:hover { border-color: var(--brand-green-muted); background: rgba(232, 245, 236, 0.5); color: #111827; }

.landing-card {
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s ease;
}

.landing-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.landing-candidate-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 20rem;
    overflow: hidden;
    background: var(--brand-green-light);
}

@media (min-width: 640px) { .landing-candidate-photo { min-height: 24rem; } }
@media (min-width: 1024px) { .landing-candidate-photo { min-height: 26rem; } }

.landing-candidate-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.landing-candidate-initials {
    display: flex;
    width: 10rem;
    height: 10rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--brand-green);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) { .landing-candidate-initials { width: 12rem; height: 12rem; font-size: 3.75rem; } }

.landing-candidate-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-candidate-profile-photo {
    aspect-ratio: 3 / 4;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background: #f3f4f6;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.landing-candidate-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.landing-candidate-profile-block {
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) { .landing-candidate-profile-block { padding: 2rem; } }

.landing-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-green); }

.landing-fact {
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background: #f9fafb;
    padding: 0.75rem 1rem;
}

.landing-fact dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; }
.landing-fact dd { margin: 0.25rem 0 0; font-size: 0.875rem; font-weight: 500; color: #111827; }

/* ------------------------------------------------------------------ */
/**
 * Public registration portal — FIST EMS brand (green, black, white)
 */

[x-cloak] {
    display: none !important;
}

:root {
    --portal-primary: #166534;
    --portal-primary-dark: #0f3d22;
    --portal-primary-light: #e8f5ec;
    --portal-primary-muted: #9dc4a8;
    --portal-black: #0a0a0a;
    --portal-black-soft: #141414;
    --portal-bg: #f4f4f5;
    --portal-surface: #ffffff;
    --portal-border: #e5e5e5;
    --portal-text: #0a0a0a;
    --portal-text-secondary: #525252;
    --portal-text-muted: #737373;
    --portal-radius: 14px;
    --portal-max-width: 42rem;
    --portal-form-max-width: 42rem;
    --portal-form-max-width-desktop: 56rem;
    --portal-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
}

.portal-body {
    font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
    background: var(--portal-bg);
    color: var(--portal-text);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.portal-header {
    background: var(--portal-black);
    color: #fff;
    border-bottom: 3px solid var(--portal-primary);
}

.portal-header-inner {
    max-width: var(--portal-max-width);
    margin: 0 auto;
    padding: 1rem 1rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.portal-header-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 0.25rem;
    flex-shrink: 0;
}

.portal-header-copy {
    min-width: 0;
}

.portal-header-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-primary);
    margin: 0 0 0.125rem;
}

.portal-header-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.portal-header-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0.125rem 0 0;
}

/* Registration form shell (landing layout portals) */
.portal-form-shell {
    position: relative;
    width: 100%;
    max-width: var(--portal-form-max-width);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .portal-form-shell {
        max-width: var(--portal-form-max-width-desktop);
    }
}

.portal-stage-transition {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
    border-radius: 1.25rem;
}

.portal-stage-transition-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-width: 12rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #0f3d22;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 61, 34, 0.28);
}

.portal-stage-transition-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.portal-stage-panel {
    animation: portal-stage-enter 0.45s ease both;
}

@keyframes portal-stage-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main */
.portal-main {
    flex: 1;
    width: 100%;
    max-width: var(--portal-max-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}

/* Card */
.portal-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    padding: 1.75rem 2rem;
}

.portal-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--portal-border);
}

.portal-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--portal-primary-light);
    color: var(--portal-primary-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.portal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.portal-card-subtitle {
    font-size: 0.875rem;
    color: var(--portal-text-secondary);
    margin: 0;
}

.portal-intro {
    font-size: 0.875rem;
    color: var(--portal-text-secondary);
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

/* Alerts */
.portal-alert {
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.portal-alert-success {
    background: var(--portal-primary-light);
    border: 1px solid var(--portal-primary-muted);
    color: #2d5a00;
}

.portal-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Form */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

@media (min-width: 768px) {
    .portal-form-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 1.25rem;
        row-gap: 1.15rem;
        align-items: start;
    }

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

.portal-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 0.375rem;
}

.portal-field-required {
    color: var(--portal-primary-dark);
}

.portal-input,
.portal-select,
.portal-textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--portal-text);
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18);
}

.portal-textarea {
    min-height: 6rem;
    resize: vertical;
}

.portal-file {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--portal-text-secondary);
}

.portal-check-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.portal-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--portal-text);
    cursor: pointer;
}

.portal-checkbox {
    margin-top: 0.125rem;
    border-radius: 4px;
    border-color: var(--portal-border);
    color: var(--portal-primary);
}

.portal-checkbox:focus {
    ring-color: var(--portal-primary);
}

.portal-option-panel {
    margin-top: 0.375rem;
    max-height: 12rem;
    overflow-y: auto;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    padding: 0.75rem;
    background: #fafafa;
}

.portal-field-error {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

/* Button */
.portal-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1rem;
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: var(--portal-primary);
    border: 1px solid var(--portal-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.portal-submit:hover {
    background: var(--portal-primary-dark);
    border-color: var(--portal-primary-dark);
}

.portal-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.28);
}

.portal-submit:disabled,
.portal-secondary-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Footer */
.portal-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--portal-text-muted);
}

.portal-footer p {
    margin: 0 0 0.5rem;
}

/* ── Election phase portals: steps, review, success, photo ────────────── */

.portal-alert-info {
    background: var(--portal-primary-light);
    border: 1px solid var(--portal-primary-muted);
    color: var(--portal-primary-dark);
}

.portal-alert-brand {
    background: var(--portal-primary-light);
    border: 1px solid color-mix(in srgb, var(--portal-primary) 28%, white);
    color: var(--portal-primary-dark);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

/* Registration page composition */
.portal-register-page {
    min-height: 70vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--portal-primary) 16%, transparent), transparent 70%),
        linear-gradient(180deg, #f7faf8 0%, var(--portal-bg) 40%, #f4f4f5 100%);
}

.portal-register-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--portal-primary) 18%, var(--portal-border));
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.92), rgba(15, 61, 34, 0.88)),
        radial-gradient(circle at top right, rgba(22, 101, 52, 0.55), transparent 55%);
    color: #fff;
    padding: 3rem 1rem 3.25rem;
}

.portal-register-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--portal-primary), #22c55e, var(--portal-primary-muted));
}

.portal-register-hero-inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.portal-register-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(157, 196, 168, 0.45);
    background: rgba(22, 101, 52, 0.28);
    color: #bbf7d0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-register-title {
    margin: 1rem 0 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.portal-register-lead {
    margin: 0.875rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.portal-register-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--portal-primary-muted);
}

.portal-register-body {
    padding: 1.75rem 0 3.5rem;
}

.portal-register-card {
    background: var(--portal-surface);
    border: 1px solid color-mix(in srgb, var(--portal-primary) 12%, var(--portal-border));
    border-radius: 1.25rem;
    box-shadow:
        0 1px 2px rgba(10, 10, 10, 0.04),
        0 18px 40px rgba(22, 101, 52, 0.07);
    padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .portal-register-card {
        padding: 2rem 2rem;
    }
}

.portal-register-card--center {
    text-align: center;
}

.portal-register-card-title {
    margin: 1rem 0 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--portal-text);
}

.portal-register-card-copy {
    margin: 0.75rem auto 0;
    max-width: 34rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--portal-text-secondary);
}

.portal-info-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .portal-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .portal-actions {
        flex-direction: row;
        align-items: center;
    }

    .portal-actions .portal-submit {
        flex: 1 1 auto;
        margin-top: 0;
    }
}

.portal-review-header {
    margin-bottom: 1.25rem;
}

.portal-review-header .portal-intro {
    margin-bottom: 0;
}

.portal-review-panel {
    border: 1px solid color-mix(in srgb, var(--portal-primary) 14%, var(--portal-border));
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 61, 34, 0.05);
}

.portal-review-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.15rem 1.25rem;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--portal-primary) 8%, #fff), #fff 55%);
    border-bottom: 1px solid color-mix(in srgb, var(--portal-primary) 12%, var(--portal-border));
}

.portal-review-photo {
    flex-shrink: 0;
}

.portal-review-photo img {
    display: block;
    width: 5.5rem;
    height: 6.75rem;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 2px solid #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    background: #f8fafc;
}

.portal-review-identity-copy {
    min-width: 0;
}

.portal-review-identity-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--portal-primary-dark);
}

.portal-review-identity-name {
    margin: 0.35rem 0 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--portal-text);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.portal-review-identity-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--portal-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16rem;
}

.portal-review-footnote {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--portal-text-secondary);
}

/* Countdown */
.portal-countdown {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    padding: 1.25rem 1.25rem 1.35rem;
    background:
        linear-gradient(145deg, #0f1410 0%, #102418 55%, #0a0a0a 100%);
    border: 1px solid rgba(157, 196, 168, 0.28);
    box-shadow: 0 16px 36px rgba(15, 61, 34, 0.22);
    color: #fff;
}

.portal-countdown::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -10%;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 70%);
    pointer-events: none;
}

.portal-countdown-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-countdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(22, 101, 52, 0.4);
    border: 1px solid rgba(157, 196, 168, 0.35);
    color: #86efac;
    flex-shrink: 0;
}

.portal-countdown-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbf7d0;
    margin: 0;
}

.portal-countdown-sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.portal-countdown-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
}

.portal-countdown-unit {
    text-align: center;
    padding: 0.85rem 0.35rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(157, 196, 168, 0.22);
    backdrop-filter: blur(6px);
}

.portal-countdown-value {
    display: block;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.portal-countdown-caption {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--portal-primary-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-countdown-expired {
    position: relative;
    font-size: 0.9375rem;
    color: #bbf7d0;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.portal-countdown-note {
    font-size: 0.875rem;
    color: var(--portal-text-secondary);
    text-align: center;
    margin: 1rem 0 0;
}

.portal-countdown--opening .portal-countdown-icon {
    color: #86efac;
}

/* Progress + steps */
.portal-progress {
    margin: 0 0 1.5rem;
}

.portal-steps {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.portal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    position: relative;
    text-align: center;
}

.portal-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0.95rem;
    left: calc(50% + 1.1rem);
    right: calc(-50% + 1.1rem);
    height: 2px;
    background: color-mix(in srgb, var(--portal-primary) 18%, var(--portal-border));
    border-radius: 2px;
    z-index: 0;
}

.portal-step--complete:not(:last-child)::after,
.portal-step--current:not(:last-child)::after {
    background: linear-gradient(90deg, var(--portal-primary), color-mix(in srgb, var(--portal-primary) 35%, var(--portal-border)));
}

.portal-step-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--portal-primary) 22%, var(--portal-border));
    background: #fff;
    color: var(--portal-text-muted);
    font-size: 0.8125rem;
    font-weight: 800;
}

.portal-step-marker svg {
    width: 0.95rem;
    height: 0.95rem;
}

.portal-step--complete .portal-step-marker {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(22, 101, 52, 0.28);
}

.portal-step--current .portal-step-marker {
    border-color: var(--portal-primary);
    color: var(--portal-primary-dark);
    background: #fff;
    box-shadow: 0 0 0 4px var(--portal-primary-light);
}

.portal-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--portal-text-secondary);
    line-height: 1.25;
}

.portal-step--complete .portal-step-label {
    color: var(--portal-primary-dark);
}

.portal-step--current .portal-step-label {
    color: var(--portal-text);
}

@media (max-width: 640px) {
    .portal-step-label {
        font-size: 0.6875rem;
    }

    .portal-countdown-grid {
        gap: 0.45rem;
    }

    .portal-countdown-unit {
        padding: 0.7rem 0.2rem;
    }

    .portal-review-identity {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .portal-review-identity-meta {
        max-width: 100%;
        white-space: normal;
    }
}

.portal-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0 0 0.25rem;
}

.portal-note {
    background: var(--portal-primary-light);
    border: 1px solid var(--portal-primary-muted);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--portal-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.portal-note-title {
    font-weight: 700;
    color: var(--portal-text);
}

.portal-review-list {
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.portal-review-row {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) 1fr;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.875rem;
    border-top: 1px solid color-mix(in srgb, var(--portal-border) 80%, transparent);
}

.portal-review-row:first-child {
    border-top: 0;
}

.portal-review-row:nth-child(odd) {
    background: #fbfcfb;
}

.portal-review-row dt {
    color: var(--portal-text-secondary);
    font-weight: 600;
}

.portal-review-row dd {
    margin: 0;
    color: var(--portal-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .portal-review-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

.portal-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface);
    color: var(--portal-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease;
}

.portal-secondary-btn:hover {
    background: #f5f5f5;
}

.portal-secondary-link {
    color: var(--portal-primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
}

.portal-success-card {
    text-align: center;
}

.portal-success-panel {
    max-width: 34rem;
    margin: 0 auto;
}

.portal-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--portal-primary-light), #fff);
    color: var(--portal-primary-dark);
    border: 1px solid color-mix(in srgb, var(--portal-primary) 22%, var(--portal-border));
    box-shadow: 0 12px 28px rgba(22, 101, 52, 0.14);
}

.portal-success-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.portal-success-eyebrow {
    margin: 1.15rem 0 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--portal-primary-dark);
}

.portal-success-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.portal-success-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid color-mix(in srgb, var(--portal-primary) 14%, var(--portal-border));
    background: linear-gradient(180deg, #f8fbf9, #fff);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--portal-text-secondary);
}

.portal-success-list strong {
    display: block;
    color: var(--portal-text);
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.portal-success-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--portal-primary) 12%, #fff);
    color: var(--portal-primary-dark);
}

.portal-success-list-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.portal-success-cta {
    display: inline-flex;
    margin-top: 1.5rem;
    text-decoration: none;
}

.portal-reference {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border: 1px dashed var(--portal-primary-muted);
    border-radius: 10px;
    background: var(--portal-primary-light);
}

.portal-reference-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--portal-text-secondary);
}

.portal-reference-value {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--portal-text);
}

.portal-field-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--portal-text-muted);
}

.portal-photo-preview {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.portal-photo-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--portal-border);
}

.portal-photo-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b91c1c;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.portal-photo-remove:hover {
    text-decoration: underline;
}

.portal-photo-upload {
    width: 100%;
    max-width: 20rem;
}

.portal-photo-dropzone {
    display: block;
    cursor: pointer;
    border: 1.5px dashed color-mix(in srgb, var(--portal-accent, #0f766e) 45%, var(--portal-border));
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
        radial-gradient(circle at top, color-mix(in srgb, var(--portal-accent, #0f766e) 8%, transparent), transparent 70%);
    padding: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.portal-photo-dropzone:hover {
    border-color: var(--portal-accent, #0f766e);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.08);
}

.portal-photo-dropzone-placeholder,
.portal-photo-dropzone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    min-height: 7.5rem;
    color: var(--portal-text-muted);
    font-size: 0.8125rem;
}

.portal-photo-dropzone-placeholder .font-semibold,
.portal-photo-dropzone-meta .font-semibold {
    color: var(--portal-text, #111827);
    font-size: 0.875rem;
}

.portal-photo-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--portal-accent, #0f766e) 12%, white);
    color: var(--portal-accent, #0f766e);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--portal-accent, #0f766e) 18%, transparent);
}

.portal-photo-dropzone-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.portal-photo-dropzone-hint {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--portal-text-muted);
}

.portal-photo-dropzone-preview {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    min-height: 0;
    text-align: left;
}

.portal-photo-dropzone-preview img {
    width: 4.75rem;
    height: 5.75rem;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--portal-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    background: #f8fafc;
}

.portal-photo-dropzone-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--portal-text-muted);
    text-align: left;
}

.portal-photo-dropzone-meta .font-semibold {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 11rem;
}

.portal-photo-dropzone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 7.5rem;
    width: 100%;
    color: var(--portal-accent, #166534);
    font-weight: 600;
}

@media (max-width: 420px) {
    .portal-photo-upload {
        max-width: none;
    }

    .portal-photo-dropzone-preview {
        flex-direction: column;
        text-align: center;
    }

    .portal-photo-dropzone-meta {
        align-items: center;
        text-align: center;
    }

    .portal-photo-dropzone-meta .font-semibold {
        max-width: 14rem;
    }
}
