/* ============================================================ GLENDORA DOG WALKING – booking.css Booking-page-specific styles only. Relies on styles.css for: variables, reset, buttons, header, footer, section-eyebrow, sr-only, skip-link, and core form base styles. ============================================================ */

:root {
    --error-color: #c0392b;
    --error-bg: #fdf0ee;
    --success-color: var(--green-700);
}

/* ============================================================ PAGE BASE / SAFETY ============================================================ */ .booking-page {
    background: var(--cream);
    overflow-x: hidden;
}

.booking-page *, .booking-page *::before, .booking-page *::after {
    box-sizing: border-box;
}

.booking-page img, .booking-page svg, .booking-page video, .booking-page canvas {
    max-width: 100%;
    height: auto;
}

.booking-page .container {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* Keep header always in scrolled state on this page */ .booking-page .site-header {
    background: rgba(253, 248, 240, 0.97);
    border-bottom-color: rgba(58, 125, 68, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

/* ============================================================ HERO ============================================================ */ .booking-hero {
    background: linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
    padding: calc(70px + 3.5rem) 0 3.5rem;
    position: relative;
    overflow: clip;
}

.booking-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='10' y='40' font-size='24' fill='white' opacity='.04'%3E🐾%3C/text%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.booking-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: min(480px, 70vw);
    height: min(480px, 70vw);
    background: radial-gradient(circle, rgba(240, 173, 48, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.booking-hero-inner {
    position: relative;
    z-index: 1;
}

.booking-hero .section-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber-400);
    margin-bottom: 1rem;
    display: inline-block;
}

.booking-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    max-width: 14ch;
}

.booking-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 60ch;
    margin: 0 0 1.5rem;
}

.booking-hero-sub strong {
    color: var(--amber-400);
}

.booking-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.25rem;
    align-items: center;
}

.booking-hero-trust span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

/* ============================================================ BREADCRUMB ============================================================ */ .breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.breadcrumb li {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ============================================================ LAYOUT ============================================================ */ .booking-section {
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: start;
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: calc(70px + 1.5rem);
    min-width: 0;
}

.booking-form-wrap {
    background: linear-gradient(145deg, #ffffff 0%, #f3f8f4 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(58, 125, 68, 0.08);
    box-shadow: var(--shadow-md);
    overflow: clip;
    min-width: 0;
}

.booking-form-wrap::before {
    content: '';
    display: block;
    height: 24px;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #3a7d44, #5ba45e, #3a7d44);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================================================ SIDEBAR CARDS ============================================================ */
.sidebar-card {
    background: var(--white);
    border: 1px solid rgba(58, 125, 68, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.sidebar-heading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--green-100);
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.next-steps strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}

.next-steps p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

.sidebar-rates {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-rates li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.sidebar-rates li:last-child {
    border-bottom: none;
}

.sidebar-rates li strong {
    color: var(--green-700);
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-rates .rate-addon {
    color: var(--gray-500);
    font-size: 0.82rem;
}

.sidebar-rates .rate-addon strong {
    color: var(--amber-600);
}

.sidebar-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition);
}

.sidebar-link:hover {
    color: var(--green-800);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sidebar-contact p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================================ FORM STATUS / ERRORS ============================================================ */
.form-status {
    margin: 1rem 1rem 0;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: none;
    min-width: 0;
}

.form-status.is-visible {
    display: block;
}

.form-status--error {
    background: #fff1f0;
    border: 1px solid #f0b4af;
    color: #b42318;
}

.form-status--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.field-error {
    min-height: 1.1rem;
    margin-top: 0.35rem;
    color: var(--error-color);
    font-size: 0.88rem;
    line-height: 1.4;
}

.field-error:empty {
    display: none;
}

.booking-form input.error, .booking-form select.error, .booking-form textarea.error {
    border-color: var(--error-color);
    background: var(--error-bg);
}

.booking-form input.error:focus, .booking-form select.error:focus, .booking-form textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.booking-form input.error,
.booking-form select.error,
.booking-form textarea.error {
    animation: errorPulse 1.5s infinite;
}

@keyframes errorPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192,57,43,0.3);
    }
    50% {
        box-shadow: 0 0 8px 0 rgba(192,57,43,0.15);
    }
}

/* ============================================================ FORM SECTIONS ============================================================ */ 
.form-section {
    border: none;
    margin: 0;
    padding: 2rem clamp(1.1rem, 4vw, 2rem);
    border-bottom: 1px solid var(--gray-100);
    min-width: 0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(58,125,68,0.15);
    /* subtle green underline */
    padding: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.legend-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-700);
}

[hidden] {
    display: none !important; /* hides uploaded image preview on page load */
}

/* ============================================================ INPUTS / SELECTS / TEXTAREA ============================================================ */
.booking-form input[type="text"], .booking-form input[type="email"], .booking-form input[type="tel"], .booking-form input[type="number"], .booking-form input[type="date"], .booking-form input[type="time"], .booking-form input[type="password"], .booking-form select, .booking-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--gray-900);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.booking-form input::placeholder, .booking-form textarea::placeholder {
    color: var(--gray-400);
}

.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.12);
}

.booking-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.booking-form input[type="date"], .booking-form input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gray-500);
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 2.5rem;
}

.field-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    line-height: 1.45;
}

/* ============================================================ FILE UPLOAD ============================================================ */
.file-upload-shell {
    display: grid;
    gap: 0.75rem;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--gray-100);
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    width: 100%;
    min-width: 0;
    transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.file-upload-label:hover {
    background: var(--green-50);
    border-color: var(--green-600);
    color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(58,125,68,0.15);
    transform: translateY(-1px);
}

.file-upload-wrapper input[type="file"]:focus-visible + .file-upload-label {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
    border-color: var(--green-600);
}

.image-preview-wrap {
    margin-top: 0.25rem;
    max-width: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--green-200, #b3d9b8);
    background: #f8faf8;
    box-shadow: var(--shadow-sm);
}

.image-preview-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================================ AGREEMENT SECTION ============================================================ */
.form-section--agreement {
    background: var(--green-50);
}

.checkbox-group {
    padding: 0.25rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
    min-width: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    transition: all var(--transition);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--green-600);
    background: var(--green-50);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--green-700);
    border-color: var(--green-700);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
}

.checkbox-label a {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-label a:hover {
    color: var(--green-800);
}

/* ============================================================ ACTIONS ============================================================ */
.form-actions {
    padding: 1.75rem clamp(1.1rem, 4vw, 2rem) 2rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.form-actions .btn-submit {
    width: min(100%, 320px);
    justify-content: center;
}

.form-note {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================================ FOCUS VISIBILITY ============================================================ */
.booking-page a:focus-visible, .booking-page button:focus-visible, .booking-page input:focus-visible, .booking-page select:focus-visible, .booking-page textarea:focus-visible {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
}

/* ============================================================ RESPONSIVE — DESKTOP / TABLET ============================================================ */
@media (max-width: 1024px) {
    .booking-layout {
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        order: 2;
    }

    .booking-form-wrap {
        order: 1;
    }

    .booking-hero-title {
        max-width: 100%;
    }
}

/* ============================================================ RESPONSIVE — MOBILE ============================================================ */
@media (max-width: 600px) {
    .booking-hero {
        padding-top: calc(70px + 2rem);
        padding-bottom: 2rem;
    }

    .booking-hero-title {
        font-size: clamp(1.85rem, 8vw, 2.2rem);
    }

    .booking-hero-trust {
        gap: 0.65rem 0.85rem;
    }

    .booking-hero-trust span {
        font-size: 0.78rem;
    }

    .booking-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 1.25rem 1rem;
    }

    .form-section {
        padding: 1.5rem 1rem;
    }

    .form-section legend {
        font-size: 1.05rem;
        margin-bottom: 1.1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .booking-form input, .booking-form select, .booking-form textarea {
        font-size: 16px;
        /* prevents iOS zoom */
    }

    .form-actions {
        padding: 1.25rem 1rem 1.5rem;
        align-items: stretch;
    }

    .form-actions .btn-submit {
        width: 100%;
    }

    .btn-submit {
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(58,125,68,0.25);
    }

    .checkbox-label {
        font-size: 0.875rem;
    }

    .file-upload-label {
        padding: 0.8rem 0.9rem;
    }

    .image-preview-wrap {
        max-width: 100%;
    }
}

/* ============================================================ VERY SMALL SCREENS ============================================================ */
@media (max-width: 420px) {
    .booking-hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .breadcrumb li, .booking-hero-trust span {
        white-space: normal;
    }

    .sidebar-rates li {
        font-size: 0.84rem;
    }
}

@media (max-width: 860px) {
    .booking-sidebar {
        order: 2;
        margin-top: 1.5rem;
    }
}