/* Template 5 layout – Zippy Loaner (retain green/purple palette) */

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.steps-section > .steps-header,
.loading-container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.steps-section .steps-container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.steps-section .steps-header {
    text-align: center;
    margin-bottom: 2rem;
}

.steps-section .steps-main-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.45rem 0;
    text-align: center;
}

.steps-section .steps-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.steps-section .step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon description";
    column-gap: 1.5rem;
    row-gap: 0.4rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eceff5;
    box-shadow: 0 4px 14px rgba(52, 61, 54, 0.06);
}

.step-icon {
    grid-area: icon;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(52, 61, 54, 0.3);
    flex-shrink: 0;
}

.step-title {
    grid-area: title;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.step-description {
    grid-area: description;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.loading-container {
    text-align: center;
    padding: 2rem 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    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-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: #a7c4b5; 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-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) {
    .steps-section .steps-main-title { font-size: 1.8rem; }
    .steps-section .steps-container {
        gap: 1rem;
    }
    .steps-section .step {
        padding: 1.35rem 1.75rem;
        column-gap: 1.75rem;
    }
    .step-icon {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        font-size: 1rem;
    }
}
