/* ============================================================
   Zentro Support Ticket — Form Styles
   Brand-matched to zentrointernet.com
   Font: DM Sans | Primary: #204ce5 | Orange accent: #f26522
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    /* ── Zentro Brand Colors ─────────────────────────────────── */
    --zst-primary:         #204ce5;   /* GF --gf-color-primary  */
    --zst-primary-dark:    #001ab3;   /* GF --gf-color-primary-darker */
    --zst-primary-light:   #eef2fd;
    --zst-primary-lighter: #527eff;   /* GF --gf-color-primary-lighter */
    --zst-orange:          #f26522;   /* Zentro CTA orange      */
    --zst-orange-dark:     #d45510;
    --zst-dark:            #112337;   /* GF --gf-color-secondary-contrast */
    --zst-mid:             #585e6a;   /* GF --gf-color-out-ctrl-dark */
    --zst-border:          rgba(17, 35, 55, 0.12);
    --zst-border-dark:     rgba(104, 110, 119, 0.35);
    --zst-bg:              #f5f5f5;   /* GF --gf-color-secondary-darker */
    --zst-white:           #ffffff;
    --zst-success:         #16a34a;
    --zst-success-bg:      #f0fdf4;
    --zst-error:           #dc2626;
    --zst-error-bg:        #fef2f2;
    --zst-warning-bg:      #fffbeb;

    /* ── Geometry ────────────────────────────────────────────── */
    --zst-radius:          3px;       /* matches GF --gf-radius  */
    --zst-radius-md:       6px;
    --zst-radius-lg:       8px;
    --zst-shadow:          0 2px 12px rgba(17, 35, 55, 0.08);
    --zst-shadow-md:       0 4px 20px rgba(17, 35, 55, 0.12);

    /* ── Typography ──────────────────────────────────────────── */
    --zst-font:            'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --zst-font-size-base:  15px;
    --zst-font-size-sm:    13px;
    --zst-font-size-lg:    17px;

    /* ── Transitions ─────────────────────────────────────────── */
    --zst-transition:      all 0.18s ease;
}

/* ── Wrapper ──────────────────────────────────────────────── */
#zst-wrapper {
    font-family: var(--zst-font);
    font-size: var(--zst-font-size-base);
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 60px;
    color: var(--zst-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Progress / Step Indicator ────────────────────────────── */
.zst-progress-container {
    margin-bottom: 36px;
}

.zst-steps-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 10px;
}

.zst-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    position: relative;
}

.zst-step-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--zst-bg);
    border: 2px solid var(--zst-border-dark);
    color: var(--zst-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--zst-font);
    transition: var(--zst-transition);
}

.zst-step-item.active .zst-step-bubble {
    background: var(--zst-primary);
    border-color: var(--zst-primary);
    color: var(--zst-white);
    box-shadow: 0 0 0 4px rgba(32, 76, 229, 0.15);
}

.zst-step-item.completed .zst-step-bubble {
    background: var(--zst-primary);
    border-color: var(--zst-primary);
    color: var(--zst-white);
}

/* Checkmark for completed steps */
.zst-step-item.completed .zst-step-bubble span {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zst-step-item.completed .zst-step-bubble span::before {
    content: '✓';
    font-size: 14px;
}

.zst-step-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--zst-mid);
    white-space: nowrap;
    transition: var(--zst-transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.zst-step-item.active .zst-step-name {
    color: var(--zst-primary);
    font-weight: 700;
}

.zst-step-item.completed .zst-step-name {
    color: var(--zst-primary);
}

.zst-step-connector {
    flex: 1;
    height: 2px;
    background: var(--zst-border-dark);
    margin: 17px 8px 0;   /* vertically centered with the bubble */
    min-width: 40px;
    max-width: 100px;
    transition: var(--zst-transition);
}

.zst-progress-track {
    height: 4px;
    background: var(--zst-border);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.zst-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--zst-primary) 0%, var(--zst-primary-lighter) 100%);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Form Page Card ───────────────────────────────────────── */
.zst-page {
    background: var(--zst-white);
    border: 1px solid var(--zst-border);
    border-radius: var(--zst-radius-lg);
    box-shadow: var(--zst-shadow);
    padding: 32px 36px 36px;
    animation: zstFadeUp 0.25s ease;
}

@keyframes zstFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.zst-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--zst-dark);
    margin: 0 0 4px;
    line-height: 1.3;
    font-family: var(--zst-font);
}

.zst-page-subtitle {
    font-size: 14px;
    color: var(--zst-mid);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Field Groups ─────────────────────────────────────────── */
.zst-field-group {
    margin-bottom: 22px;
}

.zst-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--zst-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.zst-req {
    color: var(--zst-primary);
    margin-left: 1px;
}

/* ── Text / Email / Tel / Textarea / Select ───────────────── */
.zst-input,
.zst-select,
.zst-textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-family: var(--zst-font);
    font-size: 14px;
    color: var(--zst-dark);
    background: var(--zst-white);
    border: 1px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    outline: none;
    transition: var(--zst-transition);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
}

.zst-input::placeholder,
.zst-textarea::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.zst-input:focus,
.zst-select:focus,
.zst-textarea:focus {
    border-color: var(--zst-primary);
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.12);
    background: var(--zst-white);
}

.zst-input.zst-has-error,
.zst-select.zst-has-error,
.zst-textarea.zst-has-error {
    border-color: var(--zst-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.zst-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23585e6a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.zst-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ── Grid ─────────────────────────────────────────────────── */
.zst-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.zst-col   { flex: 1 1 0; min-width: 0; }
.zst-col-3 { flex: 0 0 calc(25%   - 11px); }
.zst-col-4 { flex: 0 0 calc(33.33% - 10px); }
.zst-col-5 { flex: 0 0 calc(41.67% - 9px); }
.zst-col-6 { flex: 0 0 calc(50%   - 7px); }

/* ── Address Stack ────────────────────────────────────────── */
.zst-address-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Radio Cards — Customer Type / Property Type ──────────── */
.zst-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.zst-radio-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
}

.zst-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    cursor: pointer;
    transition: var(--zst-transition);
    background: var(--zst-white);
    user-select: none;
    font-family: var(--zst-font);
}

.zst-radio-card:hover {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

.zst-radio-card:has(.zst-radio-input:checked) {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
    box-shadow: 0 0 0 2px rgba(32, 76, 229, 0.15);
}

/* ── Radio List — Reason options ──────────────────────────── */
.zst-radio-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zst-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    cursor: pointer;
    transition: var(--zst-transition);
    background: var(--zst-white);
    user-select: none;
}

.zst-radio-option:hover {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

.zst-radio-option:has(.zst-radio-input:checked) {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

/* ── Custom Radio Dot ─────────────────────────────────────── */
.zst-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.zst-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--zst-border-dark);
    background: var(--zst-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--zst-transition);
    position: relative;
}

.zst-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zst-primary);
    opacity: 0;
    transform: scale(0);
    transition: var(--zst-transition);
}

.zst-radio-option:has(.zst-radio-input:checked) .zst-radio-dot,
.zst-radio-card:has(.zst-radio-input:checked) .zst-radio-dot {
    border-color: var(--zst-primary);
}

.zst-radio-option:has(.zst-radio-input:checked) .zst-radio-dot::after,
.zst-radio-card:has(.zst-radio-input:checked) .zst-radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.zst-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--zst-dark);
    line-height: 1.4;
}

/* ── Checkbox List ────────────────────────────────────────── */
.zst-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zst-checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    cursor: pointer;
    transition: var(--zst-transition);
    background: var(--zst-white);
    user-select: none;
}

.zst-checkbox-option:hover {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

.zst-checkbox-option:has(.zst-checkbox-input:checked) {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

.zst-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.zst-checkbox-box {
    width: 17px;
    height: 17px;
    border-radius: 3px;
    border: 2px solid var(--zst-border-dark);
    background: var(--zst-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: var(--zst-transition);
}

.zst-checkbox-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid var(--zst-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: var(--zst-transition);
    margin-top: -2px;
}

.zst-checkbox-option:has(.zst-checkbox-input:checked) .zst-checkbox-box {
    background: var(--zst-primary);
    border-color: var(--zst-primary);
}

.zst-checkbox-option:has(.zst-checkbox-input:checked) .zst-checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.zst-checkbox-label {
    font-size: 13px;
    color: var(--zst-dark);
    line-height: 1.55;
}

/* ── Network Status Notice ────────────────────────────────── */
.zst-notice-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--zst-radius);
    font-size: 13px;
    font-weight: 500;
    color: #78350f;
}

.zst-notice-block a {
    color: var(--zst-primary);
    font-weight: 700;
    text-decoration: underline;
}

.zst-notice-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #d97706;
}

/* ── Buttons ──────────────────────────────────────────────── */
.zst-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--zst-border);
}

.zst-nav-right {
    justify-content: flex-end;
}

.zst-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    font-family: var(--zst-font);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--zst-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--zst-transition);
    outline: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.zst-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.3);
}

/* Primary — matches Zentro's orange CTA buttons */
.zst-btn-primary {
    background: var(--zst-orange);
    color: var(--zst-white);
    border-color: var(--zst-orange);
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.3);
}

.zst-btn-primary:hover {
    background: var(--zst-orange-dark);
    border-color: var(--zst-orange-dark);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4);
    transform: translateY(-1px);
}

.zst-btn-primary:active {
    transform: translateY(0);
}

/* Secondary — matches Zentro's black "Account Login" button */
.zst-btn-secondary {
    background: transparent;
    color: var(--zst-dark);
    border-color: var(--zst-border-dark);
}

.zst-btn-secondary:hover {
    background: var(--zst-dark);
    color: var(--zst-white);
    border-color: var(--zst-dark);
}

/* Submit button — same as primary */
.zst-btn-submit {
    background: var(--zst-orange);
    color: var(--zst-white);
    border-color: var(--zst-orange);
    padding: 12px 32px;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.3);
}

.zst-btn-submit:hover {
    background: var(--zst-orange-dark);
    border-color: var(--zst-orange-dark);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4);
    transform: translateY(-1px);
}

.zst-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Validation Messages ──────────────────────────────────── */
.zst-field-error-msg {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--zst-error);
    font-weight: 500;
    font-family: var(--zst-font);
}

.zst-page-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: var(--zst-error-bg);
    border: 1px solid #fca5a5;
    border-radius: var(--zst-radius);
    font-size: 13px;
    color: #991b1b;
    font-weight: 500;
    animation: zstFadeUp 0.18s ease;
}

.zst-has-field-error > label {
    color: var(--zst-error);
}

/* ── Response / Confirmation ──────────────────────────────── */
#zst-response {
    margin-top: 20px;
}

.zst-success-message {
    padding: 28px 32px;
    background: var(--zst-success-bg);
    border: 1px solid #86efac;
    border-radius: var(--zst-radius-lg);
    text-align: center;
    animation: zstFadeUp 0.3s ease;
}

.zst-success-icon {
    width: 52px;
    height: 52px;
    background: var(--zst-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--zst-white);
    font-size: 24px;
    font-weight: 700;
}

.zst-success-message h3 {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 8px;
    font-family: var(--zst-font);
}

.zst-success-message p {
    font-size: 15px;
    color: #166534;
    margin: 0;
    font-family: var(--zst-font);
}

.zst-error-message {
    padding: 14px 16px;
    background: var(--zst-error-bg);
    border: 1px solid #fca5a5;
    border-radius: var(--zst-radius);
    font-size: 13px;
    color: #991b1b;
    font-weight: 500;
    animation: zstFadeUp 0.18s ease;
    font-family: var(--zst-font);
}

/* ── Submit Spinner ───────────────────────────────────────── */
.zst-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zstSpin 0.65s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes zstSpin {
    to { transform: rotate(360deg); }
}

/* ── Account ID badge (Page 2.5) ──────────────────────────── */
.zst-account-id-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--zst-mid);
    background: rgba(17, 35, 55, 0.06);
    border-radius: 99px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Account Selection Loading State (Page 2.5) ───────────── */
.zst-account-list-loading {
    pointer-events: none;
}

.zst-account-list-loading .zst-account-option:not(.zst-is-loading) {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.zst-account-option.zst-is-loading {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
    box-shadow: 0 0 0 2px rgba(32, 76, 229, 0.15);
}

.zst-account-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--zst-primary);
    background: rgba(32, 76, 229, 0.08);
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap;
    animation: zstFadeUp 0.18s ease;
}

.zst-account-loading-indicator .zst-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(32, 76, 229, 0.25);
    border-top-color: var(--zst-primary);
}

@media (max-width: 620px) {
    .zst-page {
        padding: 22px 18px 26px;
    }

    .zst-radio-grid {
        grid-template-columns: 1fr;
    }

    .zst-radio-grid--two {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .zst-row {
        flex-direction: column;
        gap: 0;
    }

    .zst-col,
    .zst-col-3,
    .zst-col-4,
    .zst-col-5,
    .zst-col-6 {
        flex: 1 1 100%;
    }

    .zst-row > .zst-col,
    .zst-row > .zst-col-6 {
        margin-bottom: 14px;
    }

    .zst-nav-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .zst-btn {
        justify-content: center;
    }

    .zst-step-name {
        display: none;
    }

    .zst-step-connector {
        min-width: 20px;
        max-width: 40px;
        margin-top: 15px;
    }
}

/* ============================================================
   Network Site Modal
   ============================================================ */

/* Prevent page scroll when modal is open */
body.zst-modal-open {
    overflow: hidden;
}

/* ── Overlay ──────────────────────────────────────────────── */
.zst-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(17, 35, 55, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
    /* Focus outline suppressed — we manage focus manually */
    outline: none;
}

.zst-modal-overlay.zst-modal-visible {
    opacity: 1;
}

/* ── Modal card ───────────────────────────────────────────── */
.zst-modal,
.zst-modal-container {
    background: var(--zst-white);
    border-radius: var(--zst-radius-lg);
    box-shadow: 0 8px 40px rgba(17, 35, 55, 0.22);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(12px);
    transition: transform 0.22s ease;
    overflow: hidden;
}

.zst-modal-overlay.zst-modal-visible .zst-modal,
.zst-modal-overlay.zst-modal-visible .zst-modal-container {
    transform: translateY(0);
}

.zst-modal-header h3,
.zst-modal-header-text h3 {
    margin: 0;
    font-family: var(--zst-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--zst-dark);
    line-height: 1.3;
}

.zst-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--zst-radius);
    font-size: 20px;
    line-height: 1;
    color: var(--zst-mid);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.zst-modal-close:hover {
    background: var(--zst-bg);
    color: var(--zst-dark);
}

/* ── Body ─────────────────────────────────────────────────── */
.zst-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.zst-modal-intro {
    margin: 0 0 18px;
    font-size: var(--zst-font-size-sm);
    color: var(--zst-mid);
    line-height: 1.55;
}

/* ── Section labels (Step 1: Site / Step 2: Unit) ────────── */
.zst-modal-section {
    margin-bottom: 16px;
}

.zst-modal-section:last-child {
    margin-bottom: 0;
}

.zst-modal-section-label {
    margin: 0 0 10px;
    font-family: var(--zst-font);
    font-size: var(--zst-font-size-sm);
    font-weight: 700;
    color: var(--zst-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Modal header: step indicator + title stacked ────────── */
.zst-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--zst-border);
    flex-shrink: 0;
}

/* 2FA modal title group (matches network modal header-text) */
.zst-modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zst-modal-title {
    margin: 0;
    font-family: var(--zst-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--zst-dark);
    line-height: 1.3;
}

.zst-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--zst-mid);
    line-height: 1.4;
}

.zst-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zst-modal-step-indicator {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--zst-primary);
}

/* ── Footer layout ───────────────────────────────────────── */
.zst-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--zst-border);
    flex-shrink: 0;
}

.zst-modal-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Ghost button variant ─────────────────────────────────── */
.zst-btn-ghost {
    background: var(--zst-white);
    border: 2px solid var(--zst-border-dark);
    color: var(--zst-dark);
}

.zst-btn-ghost:hover {
    background: var(--zst-bg);
    border-color: var(--zst-dark);
    color: var(--zst-dark);
}

/* ── Scope prompt buttons ─────────────────────────────────── */
.zst-scope-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.zst-scope-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    background: var(--zst-white);
    border: 2px solid var(--zst-border);
    border-radius: var(--zst-radius-md);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    font-family: var(--zst-font);
}

.zst-scope-btn:hover {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
    box-shadow: 0 2px 10px rgba(32, 76, 229, 0.1);
}

.zst-scope-btn:focus-visible {
    outline: 2px solid var(--zst-primary);
    outline-offset: 2px;
}

.zst-scope-icon {
    font-size: 28px;
    line-height: 1;
}

.zst-scope-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--zst-dark);
    line-height: 1.2;
}

.zst-scope-desc {
    font-size: 12px;
    color: var(--zst-mid);
    line-height: 1.4;
}

/* ── Unit select dropdown ─────────────────────────────────── */
.zst-unit-select {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
    padding: 10px 36px 10px 12px; /* extra right padding for the arrow */
    white-space: normal;
    overflow: visible;
}

/* ── Disabled confirm button state ───────────────────────── */
#zst-modal-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Account Verified Pill (Page 2.5) ─────────────────────── */
.zst-account-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 8px;
    border-radius: 99px;
    animation: zstFadeUp 0.18s ease;
}

/* ── 2FA Modal & Verification ─────────────────────────────── */
.zst-2fa-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.zst-2fa-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    background: var(--zst-white);
    cursor: pointer;
    transition: var(--zst-transition);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.zst-2fa-method-card:hover {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
}

.zst-2fa-method-card.zst-selected,
.zst-2fa-method-card.selected {
    border-color: var(--zst-primary);
    background: var(--zst-primary-light);
    box-shadow: 0 0 0 2px rgba(32, 76, 229, 0.15);
}

.zst-2fa-method-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

/* 2FA icon used inside method cards (via zst-2fa-icon class in JS) */
.zst-2fa-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.zst-2fa-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.zst-2fa-method-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zst-dark);
}

.zst-2fa-method-dest {
    font-size: 13px;
    color: var(--zst-mid);
}

/* Alias used in JS: zst-2fa-method-desc */
.zst-2fa-method-desc {
    font-size: 13px;
    color: var(--zst-mid);
}

.zst-2fa-timer-note {
    text-align: center;
    font-size: 12px;
    color: var(--zst-mid);
    margin-top: 8px;
    margin-bottom: 4px;
}

.zst-2fa-resend-row {
    text-align: center;
    font-size: 13px;
    color: var(--zst-mid);
    margin-top: 10px;
}

.zst-2fa-code-wrap {
    text-align: center;
    margin: 16px 0 20px;
}

.zst-2fa-code-input {
    width: 100%;
    max-width: 260px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid var(--zst-border-dark);
    border-radius: var(--zst-radius);
    background: #f8fafc;
    color: var(--zst-dark);
    box-sizing: border-box;
    transition: var(--zst-transition);
    outline: none;
    font-family: monospace, sans-serif;
    margin: 0 auto;
    display: block;
}

.zst-2fa-code-input:focus {
    border-color: var(--zst-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.15);
}

.zst-2fa-code-input.zst-has-error {
    border-color: var(--zst-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.zst-2fa-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: var(--zst-mid);
    flex-wrap: wrap;
    gap: 8px;
}

.zst-2fa-resend-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--zst-primary);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.zst-2fa-resend-btn:hover {
    color: var(--zst-dark);
}

.zst-2fa-resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

.zst-2fa-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: zstFadeUp 0.18s ease;
}

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

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .zst-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .zst-modal,
    .zst-modal-container {
        max-width: 100%;
        max-height: 90vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .zst-modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .zst-scope-options {
        grid-template-columns: 1fr;
    }

    .zst-modal-footer-actions {
        flex: 1 0 100%;
        justify-content: flex-end;
    }

    .zst-modal-footer-actions .zst-btn {
        flex: 1;
        justify-content: center;
    }

    .zst-account-option.zst-is-loading {
        flex-wrap: wrap;
    }

    .zst-account-loading-indicator,
    .zst-account-verified-pill {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 6px;
    }
}
