/*
 * ECUFlash Booking – public motorsport theme
 * Csak a publikus Foglalas oldalak töltik be.
 * Az admin felületet NEM érinti.
 */

:root {
    --ecu-bg: #090b10;
    --ecu-bg-soft: #0f1218;
    --ecu-panel: rgba(20, 23, 30, .95);
    --ecu-panel-2: rgba(27, 31, 40, .96);
    --ecu-panel-3: rgba(35, 40, 50, .92);
    --ecu-text: #f6f7f9;
    --ecu-muted: #9ca6b5;
    --ecu-line: rgba(255,255,255,.09);
    --ecu-line-strong: rgba(255,255,255,.16);
    --ecu-red: #ff4538;
    --ecu-red-2: #ff6a3d;
    --ecu-orange: #ff9b42;
    --ecu-blue: #4fa9ff;
    --ecu-green: #39d98a;
    --ecu-yellow: #ffcf5a;
    --ecu-danger: #ff5c68;
    --ecu-radius: 18px;
    --ecu-shadow: 0 24px 60px rgba(0,0,0,.36), 0 3px 12px rgba(0,0,0,.25);
}

html {
    background: var(--ecu-bg);
    color-scheme: dark;
}

body {
    min-height: 100vh !important;
    margin: 0 !important;
    color: var(--ecu-text) !important;
    background:
        radial-gradient(circle at 14% 8%, rgba(255,69,56,.16), transparent 29rem),
        radial-gradient(circle at 88% 28%, rgba(79,169,255,.10), transparent 30rem),
        linear-gradient(135deg, rgba(255,255,255,.018) 25%, transparent 25%) 0 0/24px 24px,
        linear-gradient(315deg, rgba(255,255,255,.014) 25%, transparent 25%) 0 0/24px 24px,
        linear-gradient(180deg, #0c0f15 0%, #090b10 52%, #0b0d12 100%) !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(255,69,56,.035) 58% 58.4%, transparent 58.4%),
        linear-gradient(295deg, transparent 0 73%, rgba(255,255,255,.018) 73% 73.35%, transparent 73.35%);
}

body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--ecu-red), var(--ecu-orange), transparent 78%);
    box-shadow: 0 0 24px rgba(255,69,56,.55);
}

::selection {
    background: rgba(255,69,56,.35);
    color: #fff;
}

.container {
    width: min(1160px, calc(100% - 32px)) !important;
    margin-inline: auto !important;
}

a {
    color: #ff8a63;
}

a:hover {
    color: #ffb092;
}

/* ---------- főoldal / hero ---------- */
.header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 18%, rgba(255,69,56,.22), transparent 22rem),
        linear-gradient(135deg, rgba(33,37,46,.97), rgba(13,15,20,.97)) !important;
    border: 1px solid var(--ecu-line) !important;
    border-radius: 24px !important;
    padding: clamp(28px, 5vw, 54px) !important;
    margin: 30px 0 22px !important;
    box-shadow: var(--ecu-shadow) !important;
}

.header::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -120px;
    border-radius: 50%;
    border: 42px solid rgba(255,255,255,.025);
    box-shadow: 0 0 0 32px rgba(255,69,56,.025);
}

.brand-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9ced7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.brand-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--ecu-red), var(--ecu-orange));
    box-shadow: 0 0 12px rgba(255,69,56,.45);
}

.header h1 {
    color: #fff !important;
    font-size: clamp(34px, 6vw, 60px) !important;
    line-height: .96 !important;
    letter-spacing: -.045em !important;
    margin: 0 0 18px !important;
    max-width: 780px;
}

.header .intro {
    color: #b6beca !important;
    max-width: 720px;
    font-size: clamp(16px, 2.2vw, 20px) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* ---------- szolgáltatás-kártyák ---------- */
.special-services,
.services {
    gap: 16px !important;
}

.service {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--ecu-text) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,69,56,.14), transparent 18rem),
        linear-gradient(145deg, rgba(28,32,40,.98), rgba(14,16,21,.98)) !important;
    border: 1px solid var(--ecu-line) !important;
    border-top: 2px solid rgba(255,69,56,.82) !important;
    border-radius: var(--ecu-radius) !important;
    padding: 24px !important;
    box-shadow: var(--ecu-shadow) !important;
    transition: transform .16s ease, border-color .16s ease !important;
}

.service:hover {
    transform: translateY(-3px);
    border-color: rgba(255,69,56,.4) !important;
    box-shadow: 0 15px 36px rgba(0,0,0,.31), 0 0 0 1px rgba(255,69,56,.07) !important;
}

.service::after {
    content: "";
    position: absolute;
    inset: auto -40px -75px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,69,56,.11), transparent 68%);
    z-index: -1;
}

.service h2 {
    color: #fff !important;
    font-size: clamp(22px, 2.8vw, 30px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
}

.service .description,
.service .duration {
    color: #aab3c0 !important;
}

.service .duration {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.07);
    font-size: 13px !important;
}

.package-service {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,155,66,.21), transparent 20rem),
        linear-gradient(145deg, rgba(31,31,34,.98), rgba(16,16,19,.98)) !important;
    border-top-color: var(--ecu-orange) !important;
}

.inquiry-service {
    background:
        radial-gradient(circle at 100% 0%, rgba(79,169,255,.20), transparent 20rem),
        linear-gradient(145deg, rgba(25,31,40,.98), rgba(13,17,23,.98)) !important;
    border-top-color: var(--ecu-blue) !important;
}

.services .service:nth-child(4n+2) {
    border-top-color: #ff7854 !important;
}
.services .service:nth-child(4n+3) {
    border-top-color: #d45cff !important;
}
.services .service:nth-child(4n+4) {
    border-top-color: #55c7ff !important;
}

.book,
.slot-link,
button[type="submit"]:not(.secondary):not(.captcha-refresh),
button.primary {
    color: #fff !important;
    background: linear-gradient(135deg, #ff4538, #ff6a3d) !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
    box-shadow: 0 10px 28px rgba(255,69,56,.22) !important;
    transition: transform .15s ease, opacity .15s ease !important;
}

.book:hover,
.slot-link:hover,
button[type="submit"]:not(.secondary):not(.captcha-refresh):hover,
button.primary:hover {
    color: #fff !important;
    filter: none;
    opacity: .94;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255,69,56,.24) !important;
}

.package-service .book {
    background: linear-gradient(135deg, #ff7b37, #ffab48) !important;
    box-shadow: 0 10px 28px rgba(255,139,59,.20) !important;
}

.inquiry-service .book {
    background: linear-gradient(135deg, #288ee8, #5db7ff) !important;
    box-shadow: 0 10px 28px rgba(79,169,255,.19) !important;
}

.footer {
    color: var(--ecu-muted) !important;
}

.footer a {
    color: #9ca6b5 !important;
}

/* ---------- közös kártyák / navigáció ---------- */
.card,
.top-card,
.toolbar,
.calendar-wrap,
.legend,
.modal,
.notice,
.contact,
.google-box,
.destination,
.workshop-address,
.ready,
.info,
.email-copy,
.summary {
    color: var(--ecu-text) !important;
    background: linear-gradient(145deg, var(--ecu-panel-2), var(--ecu-panel)) !important;
    border: 1px solid var(--ecu-line) !important;
    box-shadow: var(--ecu-shadow) !important;
}

.card,
.top-card,
.toolbar,
.calendar-wrap,
.legend,
.modal,
.notice,
.contact,
.google-box,
.destination,
.workshop-address,
.ready,
.info {
    border-radius: var(--ecu-radius) !important;
}

.card h1,
.card h2,
.top-card h1,
.modal h2,
.destination h2,
main.card h1,
main.card h2 {
    color: #fff !important;
}

.back {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #d1d6df !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 999px !important;
    padding: 9px 13px !important;
    text-decoration: none !important;
    margin-top: 22px !important;
}

.back:hover {
    background: rgba(255,69,56,.10) !important;
    border-color: rgba(255,69,56,.30) !important;
}

.service-description,
.note,
.small,
.meta,
.field-hint,
.modal-intro,
.legend,
.summary,
.info,
.contact,
.google-box,
.destination,
.workshop-address,
.ready-label {
    color: #adb6c3 !important;
}

/* ---------- űrlapok ---------- */
.field label,
label {
    color: #e9edf3 !important;
}

input,
textarea,
select {
    color: #f6f7f9 !important;
    background: rgba(8,10,14,.78) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 10px !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255,90,65,.82) !important;
    box-shadow: 0 0 0 3px rgba(255,69,56,.13) !important;
}

input[type="date"] {
    color-scheme: dark;
}

button.secondary,
.captcha-refresh {
    color: #e7ebf1 !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 10px !important;
}

button:disabled,
.disabled {
    opacity: .46 !important;
}

/* ---------- időpontnaptár ---------- */
.toolbar {
    background: linear-gradient(145deg, rgba(24,28,35,.98), rgba(15,17,22,.98)) !important;
}

.toolbar a,
.nav a {
    color: #ff8a63 !important;
}

.week-title {
    color: #fff !important;
    font-weight: 800 !important;
}

.calendar-wrap {
    overflow: auto !important;
    background: rgba(12,14,19,.94) !important;
}

.calendar {
    background: rgba(10,12,16,.9) !important;
}

.calendar-cell {
    background: rgba(17,20,26,.94) !important;
    border-color: rgba(255,255,255,.07) !important;
    color: #dce2ea !important;
}

.day-header,
.time-header {
    background: rgba(28,32,41,.98) !important;
    color: #dfe4ec !important;
}

.today-header {
    background: linear-gradient(180deg, rgba(255,69,56,.22), rgba(32,28,31,.98)) !important;
    box-shadow: inset 0 3px 0 var(--ecu-red) !important;
}

.day-name {
    color: #fff !important;
}

.day-date {
    color: #aab3c0 !important;
}

.slot-link {
    background: linear-gradient(135deg, rgba(255,69,56,.92), rgba(255,106,61,.95)) !important;
}

.slot-disabled {
    color: #707987 !important;
    background: rgba(255,255,255,.025) !important;
    border-color: rgba(255,255,255,.055) !important;
}

.slot-link .slot-time,
.slot-link .slot-status {
    color: #fff !important;
}

.slot-disabled .slot-status {
    color: #697281 !important;
}

/* ---------- modal ---------- */
.modal-backdrop {
    background: rgba(1,3,7,.82) !important;
    backdrop-filter: blur(8px);
}

.modal {
    background: linear-gradient(160deg, rgba(28,32,40,.99), rgba(12,14,19,.99)) !important;
    border-top: 2px solid var(--ecu-red) !important;
}

.captcha-question {
    color: #fff !important;
    background: rgba(255,69,56,.10) !important;
    border-color: rgba(255,69,56,.22) !important;
}

/* ---------- állapotok ---------- */
h1.success,
.success {
    color: #67e5a6 !important;
}

h1.error,
.error {
    color: #ff7b84 !important;
}

.warning,
.email-warning {
    color: #ffd48a !important;
    background: rgba(255,166,64,.085) !important;
    border: 1px solid rgba(255,166,64,.24) !important;
    border-radius: 12px !important;
}

.ok,
.google-ok,
.email-ok {
    color: #75e6ad !important;
}

.ready {
    background:
        radial-gradient(circle at 100% 0%, rgba(57,217,138,.13), transparent 16rem),
        linear-gradient(145deg, rgba(23,31,31,.98), rgba(14,18,19,.98)) !important;
    border-color: rgba(57,217,138,.16) !important;
}

.ready-time,
.workshop-address-value,
.workshop-phone-value {
    color: #fff !important;
}

.info {
    background:
        radial-gradient(circle at 100% 0%, rgba(79,169,255,.10), transparent 15rem),
        linear-gradient(145deg, rgba(22,28,36,.98), rgba(14,17,22,.98)) !important;
}

.destination {
    border-top: 2px solid var(--ecu-orange) !important;
}

/* ---------- adatvédelem ---------- */
main.card p,
main.card li,
main.card div {
    color: #b8c0cc;
}

main.card strong {
    color: #fff;
}

main.card h2 {
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.notice,
.google-box,
.contact {
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
}

/* ---------- reszponzív ---------- */
@media (max-width: 760px) {
    .container {
        width: min(100% - 18px, 1160px) !important;
    }

    .header {
        margin-top: 12px !important;
        border-radius: 18px !important;
        padding: 28px 21px !important;
    }

    .brand-kicker {
        font-size: 9px;
        letter-spacing: .1em;
    }

    .service,
    .card,
    .top-card,
    .toolbar,
    .legend,
    .modal {
        border-radius: 15px !important;
    }

    .service {
        padding: 20px !important;
    }

    .calendar-wrap {
        border-radius: 14px !important;
    }
}

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


/* ========================================================================== 
   FŐOLDAL – a fő ECUFlash oldal vizuális háttere
   A track / drag / service képek a felhasználó főoldalából származnak.
   Csak a Foglalás főoldalát érinti (body.booking-home).
   ========================================================================== */

body.booking-home {
    background: #090b10 !important;
    overscroll-behavior-y: contain;
}

.booking-home .booking-home-visual-wall {
    position: fixed;
    inset: -4vh -4vw;
    z-index: 0;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    opacity: .48;
    filter: saturate(.72) contrast(1.08);
    transform: scale(1.03);
    pointer-events: none;
}

.booking-home .booking-home-visual-wall span {
    display: block;
    min-width: 0;
    min-height: 0;
    background-position: center;
    background-size: cover;
}

.booking-home .booking-home-visual-wall .track {
    grid-row: 1 / 3;
    background-image:
        linear-gradient(120deg, rgba(0,0,0,.25), rgba(0,0,0,.72));
}

.booking-home .booking-home-visual-wall .drag {
    background-image:
        linear-gradient(120deg, rgba(0,0,0,.30), rgba(0,0,0,.78));
}

.booking-home .booking-home-visual-wall .dyno {
    background-image:
        linear-gradient(120deg, rgba(0,0,0,.35), rgba(0,0,0,.80));
}

.booking-home .booking-home-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10,12,16,.24), rgba(10,12,16,.40)),
        radial-gradient(circle at center, transparent 24%, rgba(10,12,16,.44) 90%);
}

.booking-home > .container {
    position: relative;
    z-index: 2;
}


/* v55 – egységes, háttérbarát publikus hero */
.booking-home .header {
    overflow: visible !important;
    margin: 0 0 30px !important;
    padding: 50px 0 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    contain: none !important;
}

.booking-home .header::before {
    display: none !important;
}

.booking-home .header h1 {
    margin: 0 0 14px !important;
    max-width: 900px;
    color: #fff !important;
    font-size: clamp(42px, 7vw, 72px) !important;
    line-height: .96 !important;
    letter-spacing: -.05em !important;
    font-weight: 950 !important;
    text-shadow:
        0 3px 10px rgba(0,0,0,.96),
        0 0 24px rgba(0,0,0,.78),
        0 1px 2px rgba(0,0,0,1);
}

.booking-home .header .intro {
    margin: 0 !important;
    max-width: 820px;
    color: #d5dae3 !important;
    font-size: clamp(16px, 2vw, 20px) !important;
    line-height: 1.55 !important;
    text-shadow:
        0 2px 7px rgba(0,0,0,.98),
        0 0 16px rgba(0,0,0,.82),
        0 1px 2px rgba(0,0,0,1);
}


/* v55: a booking hero háttere szándékosan transzparens. */

.booking-home .service {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,69,56,.12), transparent 18rem),
        linear-gradient(145deg, rgba(26,30,38,.96), rgba(11,13,18,.97)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        0 12px 30px rgba(0,0,0,.27),
        0 2px 7px rgba(0,0,0,.18) !important;
    contain: paint;
}

.booking-home .package-service {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,155,66,.20), transparent 20rem),
        linear-gradient(145deg, rgba(29,29,32,.91), rgba(13,13,16,.93)) !important;
}

.booking-home .inquiry-service {
    background:
        radial-gradient(circle at 100% 0%, rgba(79,169,255,.18), transparent 20rem),
        linear-gradient(145deg, rgba(22,28,37,.91), rgba(10,14,20,.93)) !important;
}

@media (max-width: 760px) {
    .booking-home .booking-home-visual-wall {
        inset: -2vh -20vw;
        grid-template-columns: 1fr;
        grid-template-rows: 1.25fr .75fr;
        opacity: .42;
    }

    .booking-home .booking-home-visual-wall .track {
        grid-row: auto;
        background-position: 38% center;
    }

    .booking-home .booking-home-visual-wall .drag {
        display: none;
    }

    .booking-home .booking-home-visual-wall .dyno {
        background-position: center;
    }
}


@media (max-width: 760px) {
    .booking-home .header {
        padding: 30px 4px 22px !important;
        margin-bottom: 18px !important;
    }

    .booking-home .header h1 {
        font-size: clamp(36px, 11vw, 50px) !important;
        margin-bottom: 11px !important;
    }

    .booking-home .header .intro {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}


/* v56 – fallback, ha az index inline override valamiért nem érvényesülne */
html body.booking-home .header {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
