:root {
    --wine: #981b2d;
    --wine-dark: #741323;
    --ink: #20262e;
    --muted: #5f6873;
    --line: #ddd7d3;
    --soft: #f6f3f1;
    --paper: #fff;
    --success: #21643e;
    --danger: #a2202d;
    --focus: #f5b642;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #f5f3f2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: var(--wine-dark); text-underline-offset: .18em; }
a:hover { color: var(--wine); }

.skip-link {
    position: fixed;
    z-index: 100;
    top: .5rem;
    left: .5rem;
    padding: .7rem 1rem;
    background: #fff;
    color: #000;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.site-header {
    min-height: 88px;
    padding: 14px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; }
.brand img { width: 142px; height: auto; display: block; }
.back-link { font-weight: 700; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.test-banner {
    margin: 18px 0 0;
    padding: 10px 14px;
    border: 1px solid #d7a30d;
    border-radius: 8px;
    background: #fff3c4;
    color: #4c3a00;
    font-weight: 700;
    text-align: center;
}

.hero { padding: 58px 0 34px; max-width: 820px; }
.eyebrow { margin: 0 0 8px; color: var(--wine); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 500; }
h2 { margin: 0 0 24px; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 500; }
h3 { margin-bottom: 8px; font-size: 1.25rem; }
.intro { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 28px; align-items: start; padding-bottom: 60px; }
.booking-card, .summary-card, .status-card, .decision-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(31, 22, 20, .06); }
.booking-card { padding: clamp(24px, 4vw, 48px); }
.summary-card { padding: 28px; position: sticky; top: 20px; }
.summary-card dl { margin: 0; }
.summary-card dl div, .decision-details div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; }
.summary-card dt, .decision-details dt { color: var(--muted); }
.summary-card dd, .decision-details dd { margin: 0; font-weight: 700; text-align: right; }
.summary-card .total { margin-top: 6px; border-top: 1px solid var(--line); font-size: 1.12rem; }
.summary-card ol { padding-left: 1.25rem; }

.notice, .error, .success { padding: 14px 16px; border-radius: 8px; margin: 0 0 20px; }
.notice { background: var(--soft); color: var(--muted); }
.error { background: #fff0f1; color: #771420; border: 1px solid #edb7be; }
.success { background: #edf8f1; color: #174c2e; border: 1px solid #afd5bc; }

fieldset { margin: 0 0 28px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 700; }
label { display: block; margin: 0 0 7px; font-weight: 750; }
select, input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #aaa29e;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
    font: inherit;
}
select:focus, input:focus { border-color: var(--wine); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

#booking-details[hidden] { display: none !important; }
.lawyer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lawyer-option { position: relative; }
.lawyer-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.lawyer-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #aaa29e;
    border-radius: 8px;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.lawyer-option label:hover { border-color: var(--wine); color: var(--wine-dark); }
.lawyer-option input:checked + label { color: #fff; background: var(--wine); border-color: var(--wine); }
.lawyer-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }

.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 10px; }
.slot-option { position: relative; }
.slot-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-option label { margin: 0; padding: 11px 8px; text-align: center; border: 1px solid #aaa29e; border-radius: 8px; cursor: pointer; }
.slot-option label:hover { border-color: var(--wine); color: var(--wine-dark); }
.slot-option input:checked + label { background: var(--wine); color: #fff; border-color: var(--wine); }
.slot-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }

.privacy-note, .submit-note { color: var(--muted); font-size: .9rem; }
.privacy-note { margin: 10px 0 0; }
.submit-note { margin: 10px 0 0; }
.payment-panel { border-top: 1px solid var(--line); padding-top: 28px; }
.payment-panel > p { color: var(--muted); }
#sumup-card { min-height: 260px; }
.primary-button, .secondary-button, .accept-button, .reject-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 11px 18px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.primary-button { width: 100%; background: var(--wine); color: #fff; }
.primary-button:hover { background: var(--wine-dark); color: #fff; }
.primary-button:disabled { opacity: .62; cursor: wait; }
.secondary-button { border-color: var(--wine); color: var(--wine-dark); background: #fff; }
.accept-button { background: var(--success); color: #fff; }
.reject-button { background: #fff; color: var(--danger); border-color: var(--danger); }

.status-main { min-height: calc(100vh - 88px); display: grid; place-items: center; padding: 50px 0; }
.status-card, .decision-card { width: min(720px, 100%); padding: clamp(26px, 5vw, 52px); }
.status-card h1, .decision-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.status-pill { margin: 24px 0; padding: 12px 15px; border-left: 5px solid var(--wine); background: var(--soft); font-weight: 750; }
.status-accepted { border-color: var(--success); background: #edf8f1; }
.status-refunded, .status-refund_pending, .status-refund_review { border-color: #6e5a20; background: #fff8dc; }
.decision-details { margin: 24px 0; }
.decision-details div { border-bottom: 1px solid var(--line); }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }

footer { padding: 30px 20px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 780px) {
    .site-header { min-height: 74px; padding: 10px 18px; }
    .brand img { width: 118px; }
    main { width: min(100% - 24px, 680px); }
    .hero { padding: 38px 0 24px; }
    .layout { grid-template-columns: 1fr; }
    .summary-card { position: static; order: -1; }
    .field-row, .decision-actions { grid-template-columns: 1fr; }
    .slot-grid { grid-template-columns: repeat(3, 1fr); }
    .booking-card { padding: 22px 18px; }
}

@media (max-width: 420px) {
    .back-link { font-size: .9rem; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-card dl div, .decision-details div { display: block; }
    .summary-card dd, .decision-details dd { margin-top: 3px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* VCA visual identity */
body {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background: #07151f;
    font-family: "Open Sans", Opensans, Roboto, Helvetica, -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
}

.site-backdrop,
.site-backdrop video,
.site-backdrop span {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-backdrop { z-index: -2; overflow: hidden; background: #07151f; }
.site-backdrop video { object-fit: cover; object-position: center; }
.site-backdrop span {
    background:
        linear-gradient(90deg, rgba(5, 18, 27, .82), rgba(5, 18, 27, .58) 55%, rgba(5, 18, 27, .76)),
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .38));
}

.site-header,
footer {
    position: relative;
    z-index: 2;
    color: #fff;
    background: rgba(5, 18, 27, .42);
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header {
    min-height: 104px;
    padding: 14px clamp(24px, 5vw, 76px);
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.brand img { width: 126px; filter: brightness(0) invert(1); }
.back-link,
footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .65); }
.back-link:hover,
footer a:hover { color: #fff; text-decoration-color: #fff; }

main { position: relative; z-index: 1; }
.hero { max-width: 900px; padding: 64px 0 38px; }
.eyebrow { color: #fff; letter-spacing: .16em; font-size: .75rem; }
h1, h2, h3, legend { font-family: inherit; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-weight: 650; letter-spacing: -.02em; }
h3, legend { font-weight: 650; }
.intro { color: rgba(255, 255, 255, .82); max-width: 800px; }

.booking-card,
.summary-card,
.status-card,
.decision-card {
    color: #fff;
    background: linear-gradient(145deg, rgba(10, 29, 42, .90), rgba(7, 21, 31, .82));
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.booking-card { padding: clamp(26px, 4vw, 50px); }
.summary-card { padding: 30px; }
.summary-card .teleconference-note a,
.summary-card .teleconference-note a:visited,
.summary-card .teleconference-note a:hover,
.summary-card .teleconference-note a:focus-visible {
    color: #fff;
    text-decoration: underline;
}
.summary-card dt,
.decision-details dt,
.privacy-note,
.submit-note,
.payment-panel > p { color: rgba(255, 255, 255, .68); }
.summary-card .total,
.decision-details div,
.payment-panel { border-color: rgba(255, 255, 255, .18); }

select,
input {
    min-height: 52px;
    color: #17232c;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .65);
    border-radius: 2px;
}
select:focus,
input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }

.slot-option label {
    min-height: 50px;
    padding: 12px 8px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .48);
    border-radius: 2px;
}
.slot-option label:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: #fff; }
.slot-option input:checked + label { color: #07151f; background: #fff; border-color: #fff; }

.lawyer-option label {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .48);
    border-radius: 2px;
}
.lawyer-option label:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: #fff; }
.lawyer-option input:checked + label { color: #07151f; background: #fff; border-color: #fff; }

.primary-button,
.secondary-button,
.accept-button,
.reject-button { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.primary-button { color: #07151f; background: #fff; border-color: #fff; }
.primary-button:hover { color: #fff; background: transparent; }
.secondary-button { color: #fff; background: transparent; border-color: #fff; }

.notice { color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .08); }
.status-pill { color: #fff; background: rgba(255, 255, 255, .08); }
.status-accepted { background: rgba(33, 100, 62, .30); }
.status-refunded,
.status-refund_pending,
.status-refund_review { background: rgba(110, 90, 32, .32); }
.status-main { min-height: calc(100vh - 104px); }

footer {
    padding: 24px clamp(24px, 5vw, 76px) 30px;
    color: rgba(255, 255, 255, .76);
    background: transparent;
    border: 0;
    text-align: right;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
footer p { margin: 0; }
footer .copyright { margin-top: 18px; }

@media (max-width: 780px) {
    .site-header { min-height: 78px; background: transparent; }
    .brand img { width: 104px; }
    .hero { padding: 42px 0 26px; }
    .summary-card { order: 0; }
    .layout { gap: 18px; }
    .site-backdrop video { object-position: 58% center; }
    footer { padding: 20px 18px 26px; text-align: right; }
}

@media (max-width: 600px) {
    .lawyer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .site-backdrop video { display: none; }
    .site-backdrop { background: linear-gradient(135deg, #0b2737, #07151f 70%); }
}
