/* Web booking flow — visual language from the Figma booking frames
   (z5l2dAEbMTfxgRMlInmh5k, node 3549-324), fonts shared with walker_pages.
   The designs' SF Pro roles map to Inter (SF Pro isn't distributable). */

@font-face {
    font-family: "IowanOldSt BT";
    src: url("../walker_pages/fonts/IowanOldStBT-Roman.311ab1bcd75e.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../walker_pages/fonts/Inter-Regular.e092f17f85b5.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../walker_pages/fonts/Inter-Medium.cd9ac96043f1.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../walker_pages/fonts/Inter-Bold.a06d959f6e5f.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Display";
    src: url("../walker_pages/fonts/InterDisplay-Regular.5ec39af341bf.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Display";
    src: url("../walker_pages/fonts/InterDisplay-Medium.20dd30212610.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Display";
    src: url("../walker_pages/fonts/InterDisplay-SemiBold.a7f1d7f72c36.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fffaee;
    --ink: #1a0e0a;
    --ink-muted: rgba(26, 14, 10, 0.38);
    --ink-faint: rgba(26, 14, 10, 0.1);
    --subhead: #534b46;
    --btn-dark: #1d0d07;
    --field-fill: rgba(29, 13, 7, 0.05);
    --card-border: #d1cbc0;
    --serif: "IowanOldSt BT", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --sans-display: "Inter Display", "Inter", -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.back-link,
.eyebrow,
.logout-link {
    font-size: 14px;
    letter-spacing: -0.28px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.38);
}

.logout-link {
    position: absolute;
    top: 0;
    right: 0;
}

.logout-link:hover {
    text-decoration: underline;
}

.back-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.eyebrow {
    font-weight: 500;
}

.layout {
    display: flex;
    gap: 96px;
    align-items: flex-start;
    flex: 1;
}

.main-col {
    flex: 1;
    max-width: 791px;
}

.page-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(32px, 3.5vw, 44px);
    line-height: 1.3;
    letter-spacing: -1.5px;
    text-transform: capitalize;
    color: var(--ink);
}

.page-subtitle {
    font-family: var(--sans-display);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.5px;
    color: var(--subhead);
    margin-top: 5px;
}

.step-body {
    margin-top: 28px;
}

.side-col {
    width: 384px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Step-progress pips */
.progress {
    display: flex;
    gap: 5px;
}

.pip {
    flex: 1;
    height: 5px;
    border-radius: 2.5px;
    background: var(--ink-faint);
}

.pip-filled {
    background: var(--ink);
}

/* "Your Walk" sidebar card */
.sidebar-card {
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px 19px;
}

.sidebar-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 32px;
    letter-spacing: -0.96px;
    color: var(--ink);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--ink-faint);
    margin: 18px 0;
}

.sidebar-empty {
    font-style: italic;
    font-size: 16px;
    color: var(--ink-muted);
}

.sidebar-dog,
.sidebar-walker,
.review-walker {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-walker {
    margin-top: 18px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    object-fit: cover;
}

.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 22px;
    background: var(--field-fill);
}

.sidebar-dog-name,
.sidebar-walker-name {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
}

.sidebar-dog-details,
.sidebar-walker-caption {
    font-size: 14px;
    color: var(--ink-muted);
    margin-top: 3px;
}

.sidebar-service {
    font-size: 16px;
    margin-top: 14px;
}

.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.sidebar-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.row-icon {
    width: 16px;
    height: 16px;
}

.sidebar-subtotal {
    color: var(--ink-muted);
}

.sidebar-total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
}

/* Primary CTA — dark pill with circular arrow */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 314px;
    height: 56px;
    padding: 0 72px 0 32px;
    border-radius: 40px;
    background: var(--btn-dark);
    color: var(--bg);
    font-family: var(--sans-display);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.4px;
    text-decoration: none;
    margin-top: 24px;
}

.button:disabled {
    opacity: 0.4;
    cursor: default;
}

.button-wide {
    width: 100%;
}

.button-muted {
    background: var(--field-fill);
    color: var(--ink);
    padding: 0 32px;
}

.button-arrow {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-dark);
}

.button-arrow img {
    width: 22px;
    height: 22px;
    transform: rotate(45deg);
}

.link-button {
    font-size: 16px;
    text-decoration: underline;
    color: var(--ink);
    flex-shrink: 0;
}

/* Forms */
.step-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.field-row {
    display: flex;
    gap: 21px;
    width: 100%;
}

.field-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: -0.28px;
    color: var(--ink-muted);
}

.field-input {
    height: 64px;
    padding: 0 20px;
    border-radius: 16px;
    border: 0.5px solid var(--ink-faint);
    background: var(--field-fill);
    font-family: var(--sans);
    font-size: 18px;
    letter-spacing: -0.36px;
    color: var(--ink);
}

.field-input::placeholder {
    color: var(--ink-muted);
}

.field-input:focus {
    outline: 2px solid var(--ink);
    outline-offset: -1px;
}

.form-error {
    color: #a53d2c;
    font-size: 16px;
    margin: 8px 0;
}

.notice {
    font-family: var(--sans-display);
    font-size: 20px;
    line-height: 1.7;
    color: var(--subhead);
}

.referral-banner {
    font-size: 16px;
    color: var(--subhead);
    background: var(--field-fill);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

/* Service options */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--field-fill);
    text-align: left;
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-title {
    font-size: 20px;
    font-weight: 500;
}

.option-caption {
    font-size: 14px;
    color: var(--ink-muted);
}

.option-price {
    font-size: 20px;
    font-weight: 500;
}

.option-selected {
    background: var(--ink);
    color: #ffffff;
}

.option-selected .option-caption {
    color: rgba(227, 227, 227, 0.5);
}

.option-selected .option-radio {
    border-color: #ffffff;
    box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 10px #ffffff;
}

/* Address */
.field-autocomplete {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(26, 14, 10, 0.12);
}

.autocomplete-list button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 16px;
}

.autocomplete-list button:hover {
    background: var(--field-fill);
}

.map-preview {
    width: 100%;
    height: 260px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-bottom: 24px;
    overflow: hidden;
}

/* Schedule */
.schedule-panel {
    display: flex;
    width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    overflow: hidden;
}

.calendar {
    flex: 1.4;
    padding: 22px;
    border-right: 1px solid var(--ink-faint);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.calendar-month {
    font-size: 20px;
    font-weight: 700;
}

.calendar-nav {
    display: inline-flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--field-fill);
}

.calendar-nav button:disabled {
    opacity: 0.3;
    cursor: default;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    justify-items: center;
}

.calendar-weekday {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 8px 0;
}

.calendar-day {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--ink-muted);
}

.calendar-day-enabled {
    color: var(--ink);
    background: var(--field-fill);
    font-weight: 500;
}

.calendar-day-selected {
    background: var(--ink);
    color: #ffffff;
}

.calendar-day:disabled {
    cursor: default;
}

.slot-panel {
    flex: 1;
    padding: 22px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.slot-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.slot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.slot-pill {
    padding: 14px 0;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    font-size: 16px;
    text-align: center;
    background: var(--bg);
}

.slot-selected {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.slot-empty {
    color: var(--ink-muted);
    font-size: 16px;
}

/* Review */
.review-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--field-fill);
}

.review-row-title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-row-caption {
    font-size: 14px;
    color: var(--ink-muted);
    margin-top: 4px;
}

.terms-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--subhead);
    margin-top: 24px;
    cursor: pointer;
}

.terms-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--btn-dark);
    cursor: pointer;
}

.terms-consent a {
    color: var(--ink);
}

/* End screens, loading, noscript */
.end-screen {
    justify-content: center;
    max-width: 640px;
}

.end-screen .page-subtitle {
    margin-top: 16px;
}

/* Walk details block on the pay/done screens (gowoofer/hub#353) */
.walk-details {
    margin-top: 32px;
    max-width: 480px;
    text-align: left;
}

.walk-details-price {
    font-size: 18px;
    font-weight: 500;
}

.walk-actions {
    margin-top: 24px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Post-booking phone capture (gowoofer/hub#362) */
.phone-capture {
    margin-top: 32px;
    width: 100%;
    max-width: 480px;
}

.phone-capture-lead {
    font-family: var(--sans-display);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 20px;
}

.sms-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--subhead);
    margin-bottom: 24px;
    cursor: pointer;
}

.sms-consent a {
    color: var(--ink);
}

.sms-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--btn-dark);
    cursor: pointer;
}

.phone-capture-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.phone-capture-links .button {
    min-width: 0;
    margin-top: 0;
}

.phone-capture-confirmation {
    margin-top: 32px;
    font-family: var(--sans-display);
    font-size: 20px;
    color: var(--ink);
}

/* Choose-walker step */
.schedule-pinned {
    font-size: 15px;
    color: var(--subhead);
    margin-bottom: 14px;
}

.walker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.walker-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
}

.walker-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    background: var(--field-fill);
}

.walker-card-video,
.walker-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.walker-card-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
}

.walker-card-poster:disabled {
    cursor: default;
}

.walker-card-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 64px;
    color: var(--ink-muted);
}

.walker-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(26, 14, 10, 0.62);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.walker-card-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 250, 238, 0.9);
    color: #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.walker-card-name {
    font-family: var(--serif);
    font-size: 22px;
}

.walker-card-walks {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 6px 0;
}

.walker-card-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--subhead);
}

.walker-card-select {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    margin-top: auto;
    font-size: 17px;
}

.page-loading,
.panel-loading {
    padding: 80px 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 18px;
}

.page-footer {
    border-top: 1px solid var(--ink-faint);
    margin-top: 64px;
}

.noscript {
    max-width: 640px;
    margin: 96px auto;
    text-align: center;
    font-family: var(--sans);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Small screens: stack the sidebar under the flow */
@media (max-width: 960px) {
    .layout {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .side-col {
        width: 100%;
    }

    .schedule-panel {
        flex-direction: column;
    }

    .calendar {
        border-right: none;
        border-bottom: 1px solid var(--ink-faint);
    }

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

    .button {
        width: 100%;
    }

    .walker-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
