/* Template 1: Card Stack Layout - timeline-style steps, alternating sides */

.form-card .form-container {
    padding: 0;
}

#form-frame {
    display: block;
}

/* Steps: stacked, centered */
.steps-section {
    max-width: var(--max-width);
    margin: 0 auto;
}

.steps-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps-section .steps-header {
    text-align: center;
}

.steps-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.steps-subtitle,
.steps-section .steps-header .steps-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center !important;
}

/* Force single column: override any global grid/flex row */
.steps-section .steps-container {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    grid-template-columns: none !important;
}

.steps-section .step {
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 1.5rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    border-bottom: 5px solid var(--color-border);
}

.steps-section .step:last-child {
    border-bottom: none;
}

/* Large step number (1, 2, 3) — icons hidden */
.steps-section .step-icon {
    display: none !important;
}

.steps-section .step::before {
    content: attr(data-step);
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.steps-section .step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.35rem 0;
}

.steps-section .step-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 2rem;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
.loading-text { color: #64748b; margin: 0; font-size: 0.875rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer-content { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }
.footer-info { margin-bottom: 0.5rem; }
.footer-info p { margin: 0.25rem 0; font-size: 0.875rem; }
.copyright { margin: 0; font-size: 0.8125rem; opacity: 0.9; }

/* Popup (minimal) */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.popup-overlay[aria-hidden="false"] { display: flex; }
.popup-content { background: #fff; border-radius: 12px; max-width: 90vw; max-height: 90vh; overflow: auto; position: relative; padding: 2rem; }
.popup-close { position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.disclaimer-content { max-width: var(--max-width); margin: 0 auto; }

@media (min-width: 768px) {
    .hero-banner h2 { font-size: 1.75rem; }
    .hero-banner p { font-size: 1rem; }
    .steps-main-title { font-size: 2rem; }
    .steps-section .steps-container { max-width: 520px; gap: 1.75rem; }
    .steps-section .step { padding: 2rem 1.5rem; }
    .steps-section .step::before { font-size: 3.5rem; margin-bottom: 0.75rem; }
    .steps-section .step-title { font-size: 1.125rem; }
}
