/* ==========================================================================
   BOOK A CALL — the modal the homepage hero's "Book a Call" button opens.

   Design language is the site's own, not a new one:
     accent        var(--primary-color) #0073FC / --primary-color-dark #005BC7
                   — this is what replaces every green in the supplied design
     field well    the recessed treatment used on /start-a-brand:
                   #14181C fill, transparent border, inset 0 2px 5px rgba(0,0,0,.6)
     card surface  linear-gradient(rgb(32,37,42), rgb(25,29,33))
     type          var(--font-primary), "Montserrat"

   Everything is scoped to .tk-bc*, which exists only in
   partials/home/book-call-modal.blade.php.

   The modal is deliberately dark in both themes: it sits over a dimmed page
   as a focused task, the way the supplied design shows it.
   ========================================================================== */

/* ==========================================================================
   1. OVERLAY + SHELL
   ========================================================================== */
.tk-bc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 6, 8, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tk-bc-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.tk-bc {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    /* The top padding is deliberately large: it reserves a row for the close
       button so it never sits on top of the review strip. */
    padding: 60px clamp(18px, 3vw, 28px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: linear-gradient(#15181C, #0E1114);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 28px 70px rgba(0, 0, 0, 0.65);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.tk-bc-overlay.is-open .tk-bc {
    transform: none;
}

.tk-bc-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tk-bc-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* ==========================================================================
   2. REVIEW BAR
   ========================================================================== */
.tk-bc-proof {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    padding: 11px 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: linear-gradient(rgb(32, 37, 42), rgb(25, 29, 33));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tk-bc-proof-item {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 0;
    justify-content: center;
    padding: 0 10px;
    text-decoration: none;
}

.tk-bc-proof-item + .tk-bc-proof-item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tk-bc-proof-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.tk-bc-proof-text {
    display: block;
    min-width: 0;
}

.tk-bc-proof-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-bc-proof-score {
    color: #FFFFFF;
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.tk-bc-stars {
    display: inline-flex;
    gap: 1px;
    color: #FFC107;
    font-size: 10px;
}

.tk-bc-proof-count {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ==========================================================================
   3. TYPE
   ========================================================================== */
.tk-bc-title {
    margin: 0 0 6px;
    color: #FFFFFF;
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: clamp(22px, 3.2vw, 27px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-transform: none;
}

.tk-bc-lede {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14.5px;
    line-height: 1.5;
}

.tk-bc-eyebrow {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   4. STEPS
   ========================================================================== */
.tk-bc-step {
    display: none;
    min-height: 0;
    flex-direction: column;
}

.tk-bc-step.is-active {
    display: flex;
}

/* ONE scroll container for the whole modal.
   Previously only step 1's option list scrolled, so on the step that shows the
   details, the day and then the time grid, the Confirm button fell past the
   bottom of the dialog with no way to reach it.

   overscroll-behavior:contain stops a wheel at the end of this box from
   chaining to the page behind. */
.tk-bc-body {
    flex: 1 1 auto;
    min-height: 0;
    margin-right: -6px;
    padding-right: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.05);
}

.tk-bc-body::-webkit-scrollbar {
    width: 8px;
}

.tk-bc-body::-webkit-scrollbar-track {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
}

.tk-bc-body::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
}

.tk-bc-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.34);
}

/* STEP 1 scrolls its option list only, so Continue is always on screen without
   scrolling. The body itself is locked on that step, so there is never a
   scrollbar inside a scrollbar. */
.tk-bc[data-step="services"] .tk-bc-body {
    overflow: hidden;
}

.tk-bc-scroll {
    max-height: clamp(170px, 38vh, 330px);
    margin-bottom: 18px;
    padding-right: 10px;
    margin-right: -6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.05);
}

.tk-bc-scroll::-webkit-scrollbar {
    width: 8px;
}

.tk-bc-scroll::-webkit-scrollbar-track {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
}

.tk-bc-scroll::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
}

.tk-bc-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.34);
}

/* ==========================================================================
   5. OPTION ROWS — multi select
   ========================================================================== */
.tk-bc-options {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-bc-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: linear-gradient(rgb(30, 34, 39), rgb(24, 28, 32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #F3F5F7;
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tk-bc-option:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.tk-bc-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    font-size: 11px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.tk-bc-box i {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tk-bc-option.is-selected {
    border-color: rgba(0, 115, 252, 0.45);
    background: linear-gradient(rgb(34, 40, 47), rgb(26, 31, 37));
}

.tk-bc-option.is-selected .tk-bc-box {
    border-color: var(--primary-color, #0073FC);
    background: var(--primary-color, #0073FC);
    box-shadow: none;
}

.tk-bc-option.is-selected .tk-bc-box i {
    opacity: 1;
}

/* ==========================================================================
   6. FIELDS — the recessed well from /start-a-brand
   ========================================================================== */
.tk-bc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.tk-bc-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: #14181C;
    color: #F3F5F7;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.tk-bc-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
    opacity: 1;
}

.tk-bc-input:focus {
    border-color: var(--primary-color, #0073FC);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 0 3px rgba(0, 115, 252, 0.18);
}

.tk-bc-input.has-error {
    border-color: #FF6262;
}

/* ==========================================================================
   7. DAY + TIME PICKERS
   ========================================================================== */
.tk-bc-picker {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.tk-bc-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.tk-bc-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 11px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: linear-gradient(rgb(32, 37, 42), rgb(25, 29, 33));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.tk-bc-day:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
}

.tk-bc-day-dow {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tk-bc-day-num {
    color: #FFFFFF;
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.tk-bc-day-mon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.tk-bc-day.is-selected {
    border-color: var(--primary-color, #0073FC);
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
}

.tk-bc-day.is-selected .tk-bc-day-dow,
.tk-bc-day.is-selected .tk-bc-day-mon {
    color: rgba(255, 255, 255, 0.85);
}

/* ---- time ---- */
.tk-bc-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease;
}

.tk-bc-back:hover {
    color: #FFFFFF;
}

.tk-bc-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tk-bc-time {
    padding: 11px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: linear-gradient(rgb(32, 37, 42), rgb(25, 29, 33));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #F3F5F7;
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tk-bc-time:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
}

.tk-bc-time.is-selected {
    border-color: var(--primary-color, #0073FC);
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
    color: #FFFFFF;
}

/* ==========================================================================
   8. ACTION + FOOTNOTE
   ========================================================================== */
.tk-bc-cta,
.tk-bc-cta:hover,
.tk-bc-cta:focus {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

.tk-bc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 14px rgba(0, 115, 252, 0.28);
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.tk-bc-cta:hover:not(:disabled) {
    background: linear-gradient(var(--primary-color-light, #66ACFF), var(--primary-color, #0073FC));
    transform: translateY(-1px);
}

/* Nothing picked yet — the design shows the action dimmed until it can act. */
.tk-bc-cta:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
    box-shadow: none;
}

.tk-bc-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.tk-bc-error {
    display: none;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 98, 98, 0.5);
    border-radius: 10px;
    background: rgba(255, 98, 98, 0.12);
    color: #FFB4B4;
    font-size: 13px;
}

.tk-bc-error.is-visible {
    display: block;
}

/* ==========================================================================
   9. DONE STEP
   ========================================================================== */
.tk-bc-done {
    padding: 14px 0 4px;
    text-align: center;
}

.tk-bc-done-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 8px 22px rgba(0, 115, 252, 0.3);
    color: #FFFFFF;
    font-size: 24px;
}

.tk-bc-done-when {
    display: inline-block;
    margin: 0 0 16px;
    padding: 9px 18px;
    border: 1px solid rgba(0, 115, 252, 0.35);
    border-radius: 999px;
    background: rgba(0, 115, 252, 0.1);
    color: var(--primary-color, #0073FC);
    font-family: var(--font-primary), "Montserrat", sans-serif;
    font-size: 13.5px;
    font-weight: 800;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 560px) {
    .tk-bc {
        padding: 22px 16px 20px;
        max-height: calc(100vh - 24px);
    }

    .tk-bc-overlay {
        padding: 12px;
    }

    .tk-bc-proof {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tk-bc-proof-item {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .tk-bc-proof-item + .tk-bc-proof-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
    }

    .tk-bc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tk-bc-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tk-bc-times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-bc-scroll {
        max-height: 210px;
    }
}
