/* ==========================================================
   Booking page – self-contained styles
   Only inherits base reset, fonts, header, footer from styles.css
   ========================================================== */

/* Hero */
.booking-hero {
    padding: 15vh 0 var(--s-lg);
    background: linear-gradient(to bottom, var(--c-paper), var(--c-sand));
}

.booking-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-lg);
    align-items: center;
}

.booking-hero h1 {
    margin-bottom: var(--s-sm);
}

.booking-hero em {
    font-style: italic;
}

.booking-hero-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgb(0 0 0 / 8%);
}

.booking-hero-img img {
    border-radius: 20px;
    width: 100%;
    display: block;
}

/* Booking section background */
.booking-section {
    padding: var(--s-xl) 0;
    background: linear-gradient(to bottom, var(--c-sand), var(--c-sea));
}

/* The white card */
.booking-form-card {
    background: #fff;
    color: var(--c-charcoal);
    border-radius: 24px;
    padding: var(--s-lg);
    box-shadow: 0 30px 60px rgb(0 0 0 / 12%);
}

/* Override any inherited color rules inside the card */
.booking-form-card h2,
.booking-form-card h3,
.booking-form-card p,
.booking-form-card strong,
.booking-form-card span {
    color: var(--c-charcoal);
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s-lg);
}

/* Step headers */
.step-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: var(--s-xs);
}

.booking-step h2 {
    font-size: 1.8rem;
    margin-bottom: var(--s-md);
    color: var(--c-charcoal);
}

/* ── Service cards ── */
.svc-card {
    display: block;
    padding: 1rem;
    border: 2px solid rgb(46 46 46 / 10%);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    margin-bottom: 0.75rem;
}

.svc-card:hover {
    border-color: var(--c-sea);
    box-shadow: 0 4px 12px rgb(46 46 46 / 8%);
}

.svc-card.selected {
    border-color: var(--c-moss);
    background: rgb(79 107 91 / 5%);
    box-shadow: 0 4px 16px rgb(79 107 91 / 12%);
}

.svc-card input[type="radio"] {
    display: none;
}

.svc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.svc-card-header h3 {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
    color: var(--c-charcoal);
}

.svc-price {
    color: var(--c-moss) !important;
    font-size: 1rem;
}

.svc-desc {
    font-size: 0.88rem;
    opacity: 0.75;
    margin: 0 0 8px;
    max-width: none;
    line-height: 1.4;
}

.svc-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    opacity: 0.5;
}

.svc-meta .material-icons {
    font-size: 14px;
    color: var(--c-charcoal);
}

/* ── Step 2 header ── */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--s-md);
}

.step-header h2 {
    margin-bottom: 0;
}

.month-nav {
    display: flex;
    align-items: center;
    background: var(--c-sand);
    border-radius: 50px;
    padding: 4px 14px;
}

.month-arrow {
    cursor: pointer;
    color: var(--c-moss) !important;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.month-arrow:hover {
    opacity: 1;
}

.month-name {
    font-family: var(--f-serif);
    font-weight: bold;
    margin: 0 8px;
    color: var(--c-moss) !important;
    font-size: 0.95rem;
}

/* ── Calendar + Times side by side ── */
.cal-and-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-md);
}

.cal-wrapper {
    background: #fff;
    padding: var(--s-sm);
    border-radius: 12px;
    border: 1px solid rgb(46 46 46 / 8%);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
    margin-bottom: 8px;
    font-weight: bold;
    opacity: 0.4;
    font-size: 0.78rem;
}

.cal-weekdays div {
    color: var(--c-charcoal);
}

/* calendar-grid and cal-day kept from styles.css */

.date-label {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: var(--c-moss) !important;
    margin-bottom: 12px;
}

/* time-slots and time-btn kept from styles.css */

.confirm-area {
    margin-top: var(--s-md);
}

.confirm-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-family: var(--f-sans);
    background: var(--c-moss);
    color: var(--c-paper);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn:hover:not(:disabled) {
    background: var(--c-charcoal);
}

.confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.secure-note {
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.5;
    margin-top: 8px;
}

/* ── Trust section ── */
.booking-trust {
    padding: var(--s-xl) 0;
    background: linear-gradient(to bottom, var(--c-sea), var(--c-paper));
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--c-sea) !important;
    margin-bottom: 0.75rem;
}

.trust-item h3 {
    color: var(--c-paper);
}

.trust-item p {
    color: rgb(247 246 242 / 80%);
    font-size: 0.95rem;
}

/* ── Step 3: Contact fields ── */
.contact-step {
    border-top: 1px solid rgb(46 46 46 / 8%);
    margin-top: var(--s-md);
    padding-top: var(--s-md);
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-sm);
    margin-bottom: var(--s-md);
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-bottom: 6px;
    color: var(--c-charcoal);
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgb(46 46 46 / 12%);
    border-radius: 10px;
    font-family: var(--f-sans);
    font-size: 1rem;
    color: var(--c-charcoal);
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.field input:focus {
    outline: none;
    border-color: var(--c-moss);
    box-shadow: 0 0 0 3px rgb(79 107 91 / 10%);
}

.field input::placeholder {
    color: rgb(46 46 46 / 30%);
}

/* ── Confirmation (JS-generated) ── */
.confirmation-wrapper {
    text-align: center;
    padding: var(--s-lg);
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: var(--s-sm);
    color: var(--c-moss);
}

.confirmation-heading {
    font-size: 2rem;
    margin-bottom: var(--s-md);
    color: var(--c-charcoal);
}

.confirmation-summary {
    background: var(--c-sand);
    border-radius: 16px;
    padding: var(--s-md);
    display: inline-block;
    text-align: left;
    min-width: 280px;
}

.confirmation-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    opacity: 0.5;
}

.confirmation-value {
    font-size: 1.05rem;
    margin-bottom: var(--s-sm);
}

.confirmation-note {
    margin-top: var(--s-md);
    font-size: 0.9rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    color: var(--c-charcoal);
}

/* ── Responsive ── */
@media (width <= 900px) {
    .booking-hero-grid,
    .booking-form-grid,
    .cal-and-times {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }
}
