/**
 * Guest registration forms (summit, ALT, volunteer).
 * Self-contained styles — does not rely on Tailwind utilities loading.
 */

/* —— ALT registration page —— */
.alt-page {
    min-height: 100vh;
    background-color: #f1f5f9;
    color: #0f172a !important;
    color-scheme: light;
}

.alt-hero {
    background: linear-gradient(180deg, #e0e7ff 0%, #f8fafc 55%, #f1f5f9 100%);
    border-bottom: 4px solid #4f46e5;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    color: #0f172a;
}

.alt-hero-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.alt-hero-logo {
    display: block;
    height: 5rem;
    width: auto;
    margin: 0 auto 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.alt-org-primary {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4338ca;
}

.alt-org-secondary {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.alt-year-badge {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto 1rem;
    padding: 0.6rem 1.6rem 0.7rem;
    background-color: #4f46e5;
    color: #ffffff;
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.alt-year-label {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #ffffff;
}

.alt-year-number {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.alt-event-title {
    margin: 0 0 0.65rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.alt-event-subtitle {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.alt-main {
    max-width: 48rem;
    margin: -1.5rem auto 0;
    padding: 0 1rem 4rem;
    position: relative;
    z-index: 2;
}

.alt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.alt-card-centered {
    padding: 2rem;
    text-align: center;
}

.alt-card-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.alt-card-bar strong {
    color: #4338ca;
}

.alt-badge-full {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border-radius: 9999px;
}

.alt-form {
    padding: 1.5rem;
}

.alt-fieldset {
    border: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.alt-fieldset legend {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
}

.alt-form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alt-form-row-2 {
    grid-template-columns: 1fr;
}

.alt-form-row-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .alt-org-primary {
        font-size: 0.875rem;
    }

    .alt-org-secondary {
        font-size: 1.125rem;
    }

    .alt-year-label {
        font-size: 2.35rem;
    }

    .alt-year-number {
        font-size: 3.25rem;
    }

    .alt-event-title {
        font-size: 2rem;
    }

    .alt-form-row-2 {
        grid-template-columns: 1fr 1fr;
    }

    .alt-form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .alt-form {
        padding: 2rem;
    }
}

.alt-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.alt-required {
    color: #dc2626;
}

.alt-field-hint {
    margin: 0.4rem 0 0;
    padding-left: 1.15rem;
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 400;
    color: #64748b;
    position: relative;
}

.alt-field-hint::before {
    content: "i";
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 0.875rem;
    height: 0.875rem;
    font-size: 0.625rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.875rem;
    text-align: center;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
}

.alt-field-hint-example {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.7rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.05rem 0.3rem;
    border-radius: 0.2rem;
}

.alt-form-narrow {
    max-width: 12rem;
}

.alt-assembly-custom {
    margin-top: 0.5rem;
}

.alt-assembly-custom-hint {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.alt-portal-foot {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.alt-portal-foot a,
.alt-portal-link {
    color: #4338ca;
    font-weight: 600;
    text-decoration: underline;
}

.alt-portal-link-wrap {
    margin: 1rem 0 0;
}

.alt-download-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .alt-download-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.alt-download-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.alt-download-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.alt-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.alt-download-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.alt-download-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.alt-captcha-box {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.alt-captcha-hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.alt-captcha-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.alt-location-notice {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.alt-location-notice:empty {
    display: none;
}

.alt-location-notice[data-state="success"] {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.alt-location-notice[data-state="pending"] {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.alt-location-notice[data-state="denied"],
.alt-location-notice[data-state="error"] {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.alt-notice-title {
    margin: 0;
    font-weight: 600;
    color: #92400e;
}

.alt-notice-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #475569;
}

.alt-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.alt-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

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

.alt-download-grid--single {
    max-width: 24rem;
}

.alt-alert-title {
    margin: 0;
    font-weight: 600;
}

.alt-reg-number-label {
    margin: 1rem 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #047857;
}

.alt-reg-number {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: #064e3b;
}

.alt-reg-meta {
    margin: 0.5rem 0 0;
    color: #047857;
}

.alt-error-list {
    margin: 0;
    padding-left: 1.25rem;
}

/* —— Shared guest form fields —— */
.guest-reg-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.guest-reg-form input[type="text"],
.guest-reg-form input[type="email"],
.guest-reg-form input[type="password"],
.guest-reg-form input[type="number"],
.guest-reg-form input[type="tel"],
.guest-reg-form select,
.guest-reg-form textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.guest-reg-form input:focus,
.guest-reg-form select:focus,
.guest-reg-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.guest-reg-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.guest-reg-form legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0;
}

.guest-reg-submit-wrap {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.guest-reg-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    background-color: #4f46e5 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.guest-reg-submit:hover {
    background-color: #4338ca !important;
}

.guest-reg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.guest-reg-hint {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* Prevent parent layout from forcing white/invisible text in ALT header */
.alt-hero,
.alt-hero h1,
.alt-hero p {
    color: inherit;
}

.alt-hero .alt-org-primary {
    color: #4338ca !important;
}

.alt-hero .alt-org-secondary {
    color: #1e293b !important;
}

.alt-hero .alt-event-title {
    color: #0f172a !important;
}

.alt-hero .alt-event-subtitle {
    color: #475569 !important;
}

.alt-hero .alt-year-label,
.alt-hero .alt-year-number {
    color: #ffffff !important;
}

/* Keep readable if site dark mode utilities leak in */
.dark .alt-page,
.dark .alt-hero,
html.dark .alt-page,
html.dark .alt-hero {
    color: #0f172a !important;
}

.dark .alt-hero .alt-org-primary,
html.dark .alt-hero .alt-org-primary {
    color: #4338ca !important;
}

.dark .alt-hero .alt-org-secondary,
.dark .alt-hero .alt-event-title,
html.dark .alt-hero .alt-org-secondary,
html.dark .alt-hero .alt-event-title {
    color: #1e293b !important;
}

.dark .alt-hero .alt-event-subtitle,
html.dark .alt-hero .alt-event-subtitle {
    color: #475569 !important;
}

/* Input group — phone with country code prepend (single line) */
.guest-reg-form .alt-input-group,
.alt-input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.guest-reg-form .alt-input-group:focus-within,
.alt-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.guest-reg-form .alt-input-group-prepend,
.alt-input-group-prepend {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    max-width: 4.5rem;
    align-items: stretch;
    background-color: #f8fafc;
    border-right: 1px solid #d1d5db;
}

.guest-reg-form .alt-input-group-prepend select,
.alt-input-group-prepend select {
    display: block;
    width: 4.25rem !important;
    min-width: 4.25rem !important;
    max-width: 4.5rem !important;
    height: 100%;
    margin: 0;
    padding: 0.5rem 1.35rem 0.5rem 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #374151;
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    appearance: auto;
    text-align: left;
    box-sizing: border-box;
}

.guest-reg-form .alt-input-group-prepend select:focus,
.alt-input-group-prepend select:focus {
    outline: none;
    box-shadow: none !important;
}

.guest-reg-form .alt-input-group-control,
.alt-input-group-control {
    flex: 1 1 auto !important;
    min-width: 0;
    width: 1% !important;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    box-sizing: border-box;
}

.guest-reg-form .alt-input-group-control:focus,
.alt-input-group-control:focus {
    outline: none;
    box-shadow: none !important;
}

/* Password visibility toggle */
.alt-password-wrap > label {
    display: block;
    margin-bottom: 0.35rem;
}

.alt-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.alt-password-field input {
    width: 100%;
    padding-right: 2.25rem !important;
}

.alt-password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.25rem;
}

.alt-password-toggle svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.alt-password-toggle:hover {
    color: #4f46e5;
}

.alt-password-toggle:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 1px;
}

/* Styled file upload */
.alt-file-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alt-file-upload .alt-form-label-style {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.alt-optional {
    font-weight: 400;
    color: #64748b;
    font-size: 0.8125rem;
}

.alt-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alt-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border: 2px dashed #a5b4fc;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}

.alt-file-btn:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.alt-file-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.alt-file-name {
    margin: 0;
    font-size: 0.8125rem;
    color: #475569;
    word-break: break-all;
}

.alt-file-name--empty {
    color: #94a3b8;
    font-style: italic;
}

.alt-file-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}
