/* =============================================
   LAYOUT - CONTAINERS, GRID, SPACING
   ============================================= */

/* ---- CONTAINER ---- */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ---- PAGE LAYOUT ---- */
.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
}

.page__header {
    position: sticky;
    top: 0;
    background-color: var(--color-background);
    padding: var(--space-4) 0;
    z-index: 10;
}

.page__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page__back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    border-radius: var(--radius-lg);
    margin-left: calc(var(--space-2) * -1);
}

.page__back:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

.page__back svg {
    width: 24px;
    height: 24px;
}

.page__logo {
    height: 32px;
    width: auto;
}

.page__placeholder {
    width: 44px;
}

.page__content {
    flex: 1;
    padding: var(--space-4) 0 var(--space-8);
}

.page__footer {
    position: sticky;
    bottom: 0;
    background-color: var(--color-background);
    padding: var(--space-4) 0;
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
}

/* ---- SECTION ---- */
.section {
    margin-bottom: var(--space-8);
}

.section__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.section__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
    margin-bottom: var(--space-6);
}

/* ---- GRID ---- */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- FLEX UTILITIES ---- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ---- SPACING UTILITIES ---- */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* ---- TEXT UTILITIES ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.font-medium { font-weight: var(--font-weight-medium); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-gray-500 { color: var(--color-gray-500); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-900 { color: var(--color-gray-900); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

/* ---- DIVIDER ---- */
.divider {
    height: 1px;
    background-color: var(--color-gray-200);
    margin: var(--space-6) 0;
}

/* ---- HOME PAGE SPECIFIC ---- */
.home-hero {
    text-align: center;
    padding: var(--space-8) 0;
}

.home-hero__logo {
    height: 48px;
    width: auto;
    margin: 0 auto var(--space-6);
}

.home-hero__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}

.home-hero__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 360px) {
    .insurance-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- STEP PAGE ---- */
.step-content {
    padding: var(--space-2) 0;
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
    margin-bottom: var(--space-6);
}

/* ---- FORM PAGE ---- */
.form-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
