* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #f5f7fb;
    line-height: 1.6;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.hero {
    padding: 80px 0;
    color: white;
    background: linear-gradient(135deg, #183153, #2774ae);
}

.brand {
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 700;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.hero p {
    max-width: 650px;
    margin-bottom: 32px;
    font-size: 20px;
}

.primary-button {
    display: inline-block;
    padding: 14px 24px;
    border: 0;
    border-radius: 8px;
    background: #ffcf33;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.steps {
    padding: 70px 0;
    background: white;
}

.steps h2,
.schedule-section h2 {
    margin-top: 0;
    font-size: 34px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    padding: 26px;
    border: 1px solid #dde3ec;
    border-radius: 12px;
}

.step-card span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #2774ae;
    color: white;
    font-weight: 700;
}

.schedule-section {
    padding: 70px 0;
}

.form-container {
    max-width: 850px;
    padding: 40px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 40px rgba(16, 34, 58, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.field {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #b8c2d0;
    border-radius: 7px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2774ae;
    border-color: transparent;
}

.error {
    margin-top: 4px;
    color: #b42318;
}

.submit-button {
    margin-top: 26px;
}

footer {
    padding: 25px 0;
    background: #172033;
    color: white;
    text-align: center;
}

.success-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
}

.success-card {
    width: min(600px, 100%);
    padding: 45px;
    border-radius: 16px;
    background: white;
    text-align: center;
    box-shadow: 0 12px 40px rgba(16, 34, 58, 0.1);
}

.checkmark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 50%;
    background: #e8f7ee;
    color: #198754;
    font-size: 38px;
    font-weight: 700;
}

.confirmation-details {
    margin: 28px 0;
    padding: 20px;
    border-radius: 10px;
    background: #f5f7fb;
    text-align: left;
}

@media (max-width: 700px) {
    .laundromat-referral-page .hero {
        padding-top: 42px;
        padding-bottom: 38px;
    }

    .laundromat-referral-page .hero h1 {
        margin-bottom: 16px;
        font-size: clamp(34px, 9.5vw, 40px);
        line-height: 1.08;
    }

    .laundromat-referral-page .hero p {
        margin-bottom: 20px;
        font-size: 18px;
    }

    .hero {
        padding: 55px 0;
    }

    .step-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-container {
        width: 94%;
        padding: 25px;
    }
}

/* Laundromat-owner growth page */
.owners-page {
    min-width: 0;
    overflow-x: hidden;
    background: #f5f8fc;
    color: #172033;
}

.owners-page a:focus-visible,
.owners-page select:focus-visible {
    outline: 3px solid #ffcf33;
    outline-offset: 3px;
}

.owners-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.owners-header {
    background: #183153;
    color: #fff;
}

.owners-header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.owners-brand,
.owners-home-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.owners-brand {
    min-width: 0;
    font-size: clamp(18px, 5.5vw, 24px);
    line-height: 1.15;
}

.owners-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.owners-home-link {
    padding-inline: 8px;
}

.owners-language-selector {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.owners-language-selector label {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.owners-language-selector select {
    width: auto;
    min-width: 0;
    max-width: 168px;
    min-height: 44px;
    padding: 8px 30px 8px 10px;
    background: #fff;
    color: #172033;
}

.owners-hero {
    padding: 56px 0;
    background: linear-gradient(145deg, #183153 0%, #2774ae 72%, #3186bf 100%);
    color: #fff;
}

.owners-hero-grid {
    display: grid;
    gap: 32px;
}

.owners-hero-copy,
.owners-hero-panel,
.owners-two-column > *,
.owners-card-grid > * {
    min-width: 0;
}

.owners-eyebrow,
.owners-kicker {
    margin: 0 0 10px;
    color: #ffdf73;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.owners-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 10.5vw, 64px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.owners-hero-copy > p:not(.owners-eyebrow) {
    max-width: 650px;
    margin: 20px 0 28px;
    font-size: clamp(18px, 5vw, 21px);
}

.owners-cta-disabled {
    display: inline-flex;
    min-height: 58px;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid #ffcf33;
    border-radius: 10px;
    background: #ffcf33;
    color: #172033;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.owners-cta-disabled strong,
.owners-cta-disabled small {
    overflow-wrap: anywhere;
}

.owners-cta-disabled small {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
}

.owners-hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
}

.owners-hero-panel h2 {
    margin: 0 0 10px;
    color: #ffdf73;
    font-size: 23px;
}

.owners-hero-panel p {
    margin: 0;
}

.owners-section {
    padding: 56px 0;
    background: #fff;
}

.owners-section-tinted {
    background: #edf4fb;
}

.owners-section-heading {
    max-width: 720px;
    margin-bottom: 26px;
}

.owners-section-heading h2,
.owners-handles-card h2,
.owners-final-card h2 {
    margin: 0;
    color: #183153;
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.15;
}

.owners-kicker {
    color: #246b9f;
}

.owners-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.owners-benefit-list li {
    position: relative;
    padding: 20px 18px 20px 50px;
    border: 1px solid #d9e4ef;
    border-radius: 14px;
    background: #f8fbfe;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.owners-benefit-list li::before {
    position: absolute;
    top: 20px;
    left: 18px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffcf33;
    color: #183153;
    content: "✓";
    font-size: 14px;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
}

.owners-two-column {
    display: grid;
    gap: 28px;
}

.owners-process-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.owners-process-list li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
}

.owners-process-list span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: #2774ae;
    color: #fff;
    font-weight: 800;
}

.owners-process-list strong {
    overflow-wrap: anywhere;
}

.owners-handles-card {
    align-self: start;
    padding: 24px;
    border-radius: 18px;
    background: #183153;
    color: #fff;
    box-shadow: 0 16px 36px rgba(24, 49, 83, .16);
}

.owners-handles-card h2 {
    color: #fff;
    font-size: clamp(26px, 7vw, 34px);
}

.owners-handles-card ul {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding-left: 22px;
}

.owners-final-cta {
    padding: 56px 0;
    background: #fff;
}

.owners-final-card {
    padding: 32px 20px;
    border-radius: 20px;
    background: #2774ae;
    color: #fff;
    text-align: center;
}

.owners-final-card h2 {
    color: #fff;
}

.owners-final-card p {
    margin: 14px auto 24px;
}

.owners-cta-disabled-light {
    background: #ffcf33;
}

.owners-footer {
    padding: 24px 0;
    background: #172033;
    color: #fff;
    text-align: center;
}

@media (max-width: 599px) {
    .owners-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .owners-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .owners-language-selector label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (min-width: 600px) {
    .owners-container {
        width: min(1120px, calc(100% - 48px));
    }

    .owners-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owners-final-card {
        padding: 44px 32px;
    }
}

@media (min-width: 900px) {
    .owners-hero {
        padding: 84px 0;
    }

    .owners-hero-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
        align-items: center;
        gap: 54px;
    }

    .owners-section,
    .owners-final-cta {
        padding: 80px 0;
    }

    .owners-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .owners-two-column {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
        gap: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .owners-page {
        scroll-behavior: auto;
    }
}

.top-navigation {
    display: grid;
    grid-template-areas: "brand navigation language toggle";
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 70px;
}

.top-navigation .brand {
    grid-area: brand;
    margin: 0;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.referral-header-only {
    display: none;
}

html.referral-route .standard-header-only,
html.referral-route .primary-navigation {
    display: none;
}

html.referral-route .referral-header-only {
    display: inline-flex;
}

html.referral-route .top-navigation {
    grid-template-areas: "brand language referral-action";
    grid-template-columns: minmax(0, 1fr) auto auto;
}

html.referral-route .referral-store-brand {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.referral-schedule-action {
    grid-area: referral-action;
    min-height: 44px;
    align-items: center;
    white-space: nowrap;
}

.primary-navigation {
    display: flex;
    grid-area: navigation;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.navigation-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.navigation-link:hover { background: rgba(255, 255, 255, 0.12); }

.navigation-cta {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    padding: 10px 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.navigation-toggle {
    display: none;
    grid-area: toggle;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.navigation-toggle-icon,
.navigation-toggle-icon::before,
.navigation-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.navigation-toggle-icon { position: relative; margin: auto; }
.navigation-toggle-icon::before,
.navigation-toggle-icon::after { position: absolute; left: 0; }
.navigation-toggle-icon::before { top: -7px; }
.navigation-toggle-icon::after { top: 7px; }
.navigation-toggle[aria-expanded="true"] .navigation-toggle-icon { background: transparent; }
.navigation-toggle[aria-expanded="true"] .navigation-toggle-icon::before { top: 0; transform: rotate(45deg); }
.navigation-toggle[aria-expanded="true"] .navigation-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.top-navigation a:focus-visible,
.top-navigation button:focus-visible,
.top-navigation select:focus-visible {
    outline: 3px solid #ffdf73;
    outline-offset: 3px;
}

.language-selector {
    display: flex;
    grid-area: language;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.language-selector label {
    margin: 0;
    color: white;
    font-size: 14px;
}

.language-selector select {
    width: auto;
    min-width: 150px;
    padding: 9px 34px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 7px;
    background: white;
    color: #172033;
    cursor: pointer;
}

.hero-content {
    max-width: 760px;
}

#how-it-works,
#schedule { scroll-margin-top: 24px; }

.eyebrow {
    margin-bottom: 12px;
    color: #ffdf73;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-description,
.section-description {
    max-width: 700px;
}

.form-heading {
    margin-bottom: 25px;
}

.success-brand {
    display: inline-block;
    margin-bottom: 25px;
    color: #183153;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.confirmation-note {
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .top-navigation {
        position: relative;
        grid-template-areas:
            "brand language toggle"
            "navigation navigation navigation";
        grid-template-columns: minmax(0, 1fr) minmax(92px, 132px) 44px;
        align-items: center;
        gap: 10px;
        margin-bottom: 45px;
    }

    .laundromat-referral-page .top-navigation {
        gap: 18px;
        margin-bottom: 32px;
    }

    html.referral-route .top-navigation {
        grid-template-areas:
            "brand language"
            "referral-action referral-action";
        grid-template-columns: minmax(0, 1fr) minmax(92px, 132px);
        gap: 10px;
    }

    html.referral-route .referral-schedule-action {
        width: 100%;
        justify-content: center;
    }

    .language-selector {
        width: auto;
    }

    .language-selector label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .language-selector select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 28px 8px 8px;
    }

    .navigation-toggle { display: inline-grid; place-items: center; }

    .primary-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .top-navigation.navigation-open .primary-navigation { display: flex; }

    .navigation-link,
    .navigation-cta {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 12px 14px;
        white-space: normal;
    }

    .navigation-cta { justify-content: center; }

    .top-navigation .brand {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    html.referral-route .referral-store-brand {
        font-size: 1.375rem;
    }

    .language-selector > :not(label):not(#language),
    .top-navigation > #bottomLaundromatOuterWrapper { display: none; }
}

@media (min-width: 701px) and (max-width: 1120px) {
    .top-navigation {
        grid-template-areas: "brand language" "navigation navigation";
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .primary-navigation { flex-wrap: wrap; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.zip-location-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.zip-location-values > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
}

.zip-location-values span,
.zip-location-values strong { display: block; overflow-wrap: anywhere; }
.zip-lookup-status { margin-top: 8px; color: #475569; }
.zip-lookup-status.error { color: #b91c1c; }

@media (max-width: 430px) {
    .zip-location-values { grid-template-columns: 1fr; }
}
