@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --ink: #0f172a;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --bg: #eef2ff;
    --panel: #ffffff;
    --soft: #f8fafc;
    --accent: #27aae1;
    --accent-soft: #eff6ff;
    --ok: #16a34a;
    --warn: #ef4444;
    --radius: 12px;
}

#booking-root {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
}

.bk-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 30, 60, .08);
}

/* Header */
.bk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
}

.bk-logo {
    display: block;
    max-width: 150px;
    height: auto;
}

.bk-order {
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bk-body {
    padding: 32px 28px;
}

/* Hero */
.bk-hero {
    margin-bottom: 28px;
}

.bk-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bk-hero-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bk-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
}

.bk-h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.bk-accent {
    color: var(--accent);
}

.bk-lede {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* Section */
.bk-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.bk-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.bk-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: color .3s ease;
}

.bk-section.is-done .bk-section-label {
    color: var(--ok);
}

.bk-section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bk-section-check {
    color: var(--ok);
    font-weight: 700;
    font-size: 13px;
}

.bk-chevron {
    color: var(--faint);
    font-size: 12px;
    line-height: 1;
    transition: transform .3s ease;
}

.bk-section.is-collapsed .bk-chevron {
    transform: rotate(-90deg);
}

/* Collapse animation: grid-template-rows 1fr -> 0fr animates height to auto smoothly */
.bk-section-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .5s ease;
}

.bk-section.is-collapsed .bk-section-body {
    grid-template-rows: 0fr;
}

.bk-section-inner {
    overflow: hidden;
    min-height: 0;
    padding-top: 14px;
}

.bk-fieldset {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    gap: 16px;
}

/* Shipment summary */
.bk-summary {
    display: grid;
    gap: 4px;
}

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.bk-summary-row .label {
    color: var(--muted);
}

.bk-summary-row .val {
    font-weight: 700;
}

.bk-svc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.bk-pricing {
    display: grid;
    gap: 8px;
}

.bk-price-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s, opacity .25s, filter .25s;
}

.bk-price-option:hover {
    border-color: var(--accent);
}

.bk-price-option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Unselected options dim to grey once a choice is made */
.bk-price-option.dimmed {
    opacity: .45;
    filter: grayscale(1);
}

.bk-price-option.dimmed:hover {
    opacity: 1;
    filter: grayscale(0);
}

.bk-price-option input {
    margin: 0;
    accent-color: var(--accent);
}

.bk-price-option .name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.bk-price-option .price {
    font-weight: 700;
    font-size: 14px;
}

/* "Same as pickup" checkbox row */
.bk-checkrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.bk-checkrow input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Delivery fields greyed while mirroring pickup */
.bk-mirrored {
    opacity: .55;
    transition: opacity .25s;
}

/* Field grids */
.bk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bk-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {

    .bk-grid-2,
    .bk-grid-3 {
        grid-template-columns: 1fr;
    }

    .bk-body,
    .bk-head,
    .bk-foot {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bk-h1 {
        font-size: 24px;
    }
}

.bk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bk-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.req {
    color: var(--accent);
    font-weight: 700;
}

.bk-field input,
.bk-field select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}

.bk-field input::placeholder {
    color: var(--faint);
}

.bk-field input:focus,
.bk-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(39, 170, 225, .15);
}

/* Running condition toggle */
.bk-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bk-toggle-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.bk-toggle-btn:hover {
    border-color: var(--accent);
}

.bk-toggle-btn.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* Upload boxes */
.bk-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: var(--soft);
    padding: 28px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.bk-upload:hover {
    border-color: var(--accent);
}

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

.bk-upload-ic {
    line-height: 0;
}

.bk-upload-t {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.bk-upload-s {
    font-size: 11px;
    color: var(--faint);
}

.bk-upload.uploaded {
    border-style: solid;
    border-color: var(--ok);
    background: #f0fdf4;
}

.bk-upload.uploaded .bk-upload-t {
    color: var(--ok);
}

/* Submit */
.bk-submit {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.bk-btn {
    display: block;
    width: 100%;
    padding: 15px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}

.bk-btn:hover {
    opacity: .92;
}

.bk-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bk-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.bk-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bk-trust img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.bk-status {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

.bk-status.error {
    background: #fdebeb;
    color: var(--warn);
}

/* Questions */
.bk-questions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s;
}

.bk-questions:hover {
    border-color: var(--accent);
}

.bk-questions-ic {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bk-questions-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.bk-questions-txt strong {
    color: var(--ink);
    font-size: 14px;
}

.bk-questions-txt span {
    color: var(--muted);
}

.bk-questions-arrow {
    font-size: 22px;
    color: var(--faint);
    line-height: 1;
}

/* Footer */
.bk-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.bk-foot-logo {
    width: 64px;
    height: auto;
    flex: 0 0 auto;
}

.bk-foot-info {
    flex: 1;
    min-width: 160px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.bk-foot-co {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.bk-foot-addr {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}

.bk-foot-addr a {
    color: var(--accent);
    text-decoration: none;
}

.bk-foot-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.bk-foot-shield {
    width: 28px;
    height: auto;
    flex: 0 0 auto;
}

.bk-foot-tags {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}

.bk-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    background: #0f172a;
}

.bk-copyright span {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

.bk-copyright a {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
}

.bk-copyright a:hover {
    color: rgba(255, 255, 255, .8);
}

.bk-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
