/*
 * Public site — dates, seat rings, panels and forms.
 *
 * THE SEAT RINGS
 *
 * The woodulight logo is a cut log end: the two O's in «WOOD» are concentric growth rings,
 * drawn in #8c6441. This site's one piece of information the shop doesn't have is «how many
 * stools are left in the room», so that is what the logo's own mark is used to say. One ring
 * per stool, taken ones filled with the logo brown, free ones left as a hairline outline.
 *
 * A parent reads «three left» without reading a number, and the marks are the same element
 * Kelly already has on her printed day sheet. The rings are drawn in CSS rather than SVG so
 * the row costs one empty <span> per seat and no extra request.
 *
 * Circles are the one place border-radius appears: --wl-radius is 0 because the brand is
 * square, but a growth ring is a circle and is exempt by definition.
 */

/* ---- Seat rings ---------------------------------------------------------------------- */

.seats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.seats__marks {
    display: flex;
    gap: 5px;
}

.seats__mark {
    width: 15px;
    height: 15px;
    border: 1px solid var(--wl-wood);
    border-radius: 50%;
    /* Outer ring, white gap, inner ring, hollow centre — a log end seen end-on. */
    box-shadow:
        inset 0 0 0 2px var(--wl-sheet),
        inset 0 0 0 3px var(--wl-wood);
}

.seats__mark--taken {
    border-color: var(--wl-timber);
    /* Same rings, then the heartwood filled solid: this stool is spoken for. */
    box-shadow:
        inset 0 0 0 2px var(--wl-sheet),
        inset 0 0 0 9px var(--wl-timber);
}

.seats__label {
    color: var(--wl-muted);
    font-size: 14px;
}

.seats__label--full {
    color: var(--wl-timber);
}

/* ---- Date rows ----------------------------------------------------------------------- */

.date-row {
    display: block;
    padding: 20px 0;
    border-top: 1px solid var(--wl-rule);
}

.date-row:last-of-type {
    border-bottom: 1px solid var(--wl-rule);
}

.date-row__date {
    margin: 0 0 4px;
    color: var(--wl-heading);
    font-size: 19px;
    font-weight: 700;
}

.date-row__time {
    margin: 0 0 10px;
    color: var(--wl-muted);
    font-size: 14px;
}

.date-row--full .date-row__date,
.date-row--full .date-row__time {
    color: var(--wl-muted);
}

.date-row:hover .date-row__date {
    color: var(--wl-timber);
}

/* ---- Panels -------------------------------------------------------------------------- */

.panel {
    margin: 0 0 32px;
    padding: 26px 22px 28px;
    background: var(--wl-tint);
}

.panel--quiet {
    background: none;
    padding: 24px 0 0;
    border-top: 1px solid var(--wl-rule);
}

/*
 * The booking form itself sits on white, not on the tint. The tint is for the two states
 * that are telling the parent something (full, closed); the form is the main event on this
 * page and a coloured box around it reads as a sidebar.
 */
.panel--form {
    padding: 0;
    background: none;
}

.panel__title {
    margin: 0 0 8px;
    color: var(--wl-timber);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.panel__text {
    max-width: var(--wl-measure);
    margin: 0;
    color: var(--wl-muted);
    font-size: 15px;
}

/* ---- Booking summary ------------------------------------------------------------------ */

.booking__summary {
    margin: 0 0 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--wl-rule);
}

.booking__date {
    margin: 0 0 4px;
    color: var(--wl-heading);
    font-size: 21px;
    font-weight: 700;
}

.booking__meta {
    margin: 0 0 14px;
    color: var(--wl-muted);
    font-size: 15px;
}

.booking__price {
    margin: 14px 0 0;
    color: var(--wl-timber);
    font-size: 17px;
}

/* ---- Form ------------------------------------------------------------------------------ */

.form__field {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 7px;
    color: var(--wl-heading);
    font-size: 14px;
}

/*
 * 17px is deliberate and must not drop: iOS Safari zooms the whole page in when a focused
 * input's text is under 16px, which on a booking form reads as the page breaking.
 */
.form__input,
.form__select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--wl-rule-strong);
    border-radius: var(--wl-radius);
    background: var(--wl-sheet);
    color: var(--wl-text);
    font-family: var(--wl-font);
    font-size: 17px;
    line-height: 1.4;
}

.form__input:focus,
.form__select:focus {
    border-color: var(--wl-timber);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--wl-timber);
}

.form__hint {
    margin: 7px 0 0;
    color: var(--wl-muted);
    font-size: 13px;
}

/* The live site's primary button: near-black, square, generous padding. Never tan. */
.form__submit {
    width: 100%;
    margin-top: 6px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--wl-radius);
    background: var(--wl-ink);
    color: var(--wl-sheet);
    font-family: var(--wl-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.form__submit:hover {
    background: var(--wl-timber);
}

.form__submit:active {
    background: var(--wl-timber-deep);
}

@media (min-width: 60rem) {
    .form__submit {
        width: auto;
        min-width: 280px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .form__submit,
    .date-row__date {
        transition: background-color 140ms ease, color 140ms ease;
    }
}
