/* ================================================================
   EEA Booking — Calendar + time slots + form
   ================================================================ */

.eea-bk {
    --eea-bk-navy:    #080872;
    --eea-bk-gold:    #C7A73E;
    --eea-bk-white:   #ffffff;
    --eea-bk-ink:     #1a1a2e;
    --eea-bk-mute:    #6b6b80;
    --eea-bk-accent:  #C7A73E;
    --eea-bk-primary: #080872;
    --eea-bk-ease:    cubic-bezier(.2, .8, .2, 1);

    position: relative;
    width: 100%;
    padding: 90px 32px;
    color: var(--eea-bk-ink);
    font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fafafe;
    overflow: hidden;
    isolation: isolate;
}

.eea-bk,
.eea-bk *,
.eea-bk *::before,
.eea-bk *::after {
    box-sizing: border-box;
}

.eea-bk p { margin: 0; }
.eea-bk ul, .eea-bk li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Full-width breakout */
.eea-bk--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.eea-bk__inner {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.eea-bk__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.eea-bk__eyebrow {
    display: inline-block;
    color: var(--eea-bk-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eea-bk__heading {
    margin: 0 0 14px;
    color: var(--eea-bk-primary);
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
}

.eea-bk__sub {
    color: #5a5a70;
    font-size: 16px;
    line-height: 1.7;
}

/* ================================================================
   FORM CARDS / STEPS
   ================================================================ */
.eea-bk__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.eea-bk__card {
    background: var(--eea-bk-white);
    border: 1px solid rgba(8, 8, 114, 0.06);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 40px -10px rgba(8, 8, 114, 0.10);
    transition: opacity .3s var(--eea-bk-ease), transform .3s var(--eea-bk-ease);
}

.eea-bk__step.is-locked {
    opacity: 0.45;
    pointer-events: none;
    filter: saturate(0.6);
}

.eea-bk__step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.eea-bk__step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--eea-bk-accent);
    color: var(--eea-bk-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
}

.eea-bk__step.is-completed .eea-bk__step-num {
    background: var(--eea-bk-primary);
    color: var(--eea-bk-white);
}

.eea-bk__step.is-completed .eea-bk__step-num::after {
    content: "✓";
    position: absolute;
}

.eea-bk__step-num {
    position: relative;
}

.eea-bk__step.is-completed .eea-bk__step-num span,
.eea-bk__step.is-completed .eea-bk__step-num {
    /* keep number readable */
}

.eea-bk__step-title {
    margin: 0;
    color: var(--eea-bk-primary);
    font-family: 'Baskervville', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    flex: 1;
}

.eea-bk__tz {
    color: var(--eea-bk-mute);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ================================================================
   SERVICES
   ================================================================ */
.eea-bk__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.eea-bk__service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #fafafe;
    border: 2px solid rgba(8, 8, 114, 0.10);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s var(--eea-bk-ease);
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.eea-bk__service:hover {
    border-color: var(--eea-bk-accent);
    background: rgba(199, 167, 62, 0.06);
    transform: translateY(-1px);
}

.eea-bk__service.is-selected {
    border-color: var(--eea-bk-accent);
    background: rgba(199, 167, 62, 0.12);
    box-shadow: 0 8px 20px -6px rgba(199, 167, 62, 0.25);
    padding-right: 48px; /* room for checkmark */
}

/* Checkmark on selected service */
.eea-bk__service.is-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--eea-bk-accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080872' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 10px rgba(199, 167, 62, 0.35);
}

.eea-bk__service-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.eea-bk__service-name {
    color: var(--eea-bk-primary);
    font-family: 'Baskervville', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.eea-bk__service-price {
    color: var(--eea-bk-accent);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.eea-bk__service-meta {
    color: var(--eea-bk-mute);
    font-size: 12.5px;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.eea-bk__service-meta > span:first-child {
    color: var(--eea-bk-primary);
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.eea-bk__service-sep {
    opacity: 0.5;
    flex-shrink: 0;
}

.eea-bk__service-desc {
    flex: 1 1 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.55;
    color: var(--eea-bk-mute);
}

/* ================================================================
   CALENDAR
   ================================================================ */
.eea-bk__calendar {
    margin: 0 auto;
    max-width: 460px;
}

.eea-bk__cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.eea-bk__cal-title {
    color: var(--eea-bk-primary);
    font-family: 'Baskervville', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.eea-bk__cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(8, 8, 114, 0.15);
    color: var(--eea-bk-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s var(--eea-bk-ease);
    appearance: none;
    -webkit-appearance: none;
}

.eea-bk__cal-nav:hover {
    background: var(--eea-bk-accent);
    border-color: var(--eea-bk-accent);
    color: var(--eea-bk-primary);
}

.eea-bk__cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.eea-bk__cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.eea-bk__cal-weekdays span {
    text-align: center;
    color: var(--eea-bk-mute);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
}

.eea-bk__cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.eea-bk__day {
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--eea-bk-ink);
    transition: all .2s var(--eea-bk-ease);
    appearance: none;
    -webkit-appearance: none;
    line-height: 1;
}

.eea-bk__day.is-blank {
    cursor: default;
    pointer-events: none;
}

.eea-bk__day.is-available {
    color: var(--eea-bk-ink);
}

.eea-bk__day.is-available:hover {
    background: rgba(199, 167, 62, 0.18);
    color: var(--eea-bk-primary);
}

.eea-bk__day.is-today {
    border: 1.5px solid var(--eea-bk-accent);
}

.eea-bk__day.is-selected {
    background: var(--eea-bk-accent) !important;
    color: var(--eea-bk-primary) !important;
    font-weight: 800;
    transform: scale(1.05);
}

.eea-bk__day.is-disabled {
    color: rgba(8, 8, 114, 0.25);
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================================
   TIME SLOTS
   ================================================================ */
.eea-bk__slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.eea-bk__slots-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--eea-bk-mute);
    font-size: 14px;
    padding: 16px 0;
}

.eea-bk__slot {
    padding: 12px 8px;
    background: var(--eea-bk-white);
    border: 2px solid rgba(8, 8, 114, 0.18);
    border-radius: 10px;
    color: var(--eea-bk-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .25s var(--eea-bk-ease);
    appearance: none;
    -webkit-appearance: none;
}

.eea-bk__slot:hover {
    border-color: var(--eea-bk-accent);
    background: rgba(199, 167, 62, 0.10);
}

.eea-bk__slot.is-selected {
    background: var(--eea-bk-accent);
    border-color: var(--eea-bk-accent);
    color: var(--eea-bk-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(199, 167, 62, 0.30);
}

/* TAKEN / already-booked slot */
.eea-bk__slot.is-taken {
    background: #f0f0f5;
    border-color: rgba(8, 8, 114, 0.10);
    color: rgba(8, 8, 114, 0.40);
    cursor: not-allowed;
    text-decoration: line-through;
    font-size: 11.5px;
    box-shadow: none;
    pointer-events: none;
    position: relative;
}

.eea-bk__slot.is-taken::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #cc4444;
    border-radius: 50%;
}

.eea-bk__slot.is-taken:hover {
    background: #f0f0f5;
    border-color: rgba(8, 8, 114, 0.10);
    transform: none;
}

/* ================================================================
   FORM
   ================================================================ */
.eea-bk__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.eea-bk__field {
    margin-bottom: 14px;
}

.eea-bk__input,
.eea-bk__textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    color: var(--eea-bk-ink);
    background: #f6f6fb;
    border: 1px solid rgba(8, 8, 114, 0.10);
    border-radius: 10px;
    outline: none;
    transition: all .25s var(--eea-bk-ease);
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.4;
}

.eea-bk__textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.eea-bk__input:focus,
.eea-bk__textarea:focus {
    border-color: var(--eea-bk-accent);
    background: var(--eea-bk-white);
    box-shadow: 0 0 0 3px rgba(199, 167, 62, 0.18);
}

.eea-bk__input.is-invalid,
.eea-bk__textarea.is-invalid {
    border-color: #ff7a7a;
    box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.18);
}

/* Summary */
.eea-bk__summary {
    background: rgba(199, 167, 62, 0.08);
    border: 1px solid rgba(199, 167, 62, 0.20);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 8px 0 18px;
}

.eea-bk__summary-title {
    color: var(--eea-bk-accent);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.eea-bk__summary ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--eea-bk-ink);
}

.eea-bk__summary strong {
    color: var(--eea-bk-primary);
    font-weight: 700;
    min-width: 80px;
    display: inline-block;
}

/* Submit */
.eea-bk__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--eea-bk-accent);
    color: var(--eea-bk-primary);
    border: 2px solid var(--eea-bk-accent);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s var(--eea-bk-ease);
    box-shadow: 0 12px 28px rgba(199, 167, 62, 0.28);
    appearance: none;
    -webkit-appearance: none;
}

.eea-bk__submit svg {
    transition: transform .3s var(--eea-bk-ease);
}

.eea-bk__submit:hover {
    background: var(--eea-bk-primary);
    color: var(--eea-bk-white);
    border-color: var(--eea-bk-primary);
    transform: translateY(-2px);
}

.eea-bk__submit:hover svg {
    transform: translateX(4px);
}

.eea-bk__submit.is-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.eea-bk__msg {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    min-height: 18px;
}

.eea-bk__msg.is-success { color: #2e8b2e; font-weight: 600; }
.eea-bk__msg.is-error   { color: #cc4444; font-weight: 600; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .eea-bk {
        padding: 48px 16px;
    }
    .eea-bk__card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .eea-bk__step-head {
        gap: 12px;
        margin-bottom: 18px;
    }
    .eea-bk__step-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .eea-bk__step-title {
        font-size: 18px;
    }

    /* ===== SERVICES — Mobile redesign ===== */
    .eea-bk__services {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .eea-bk__service {
        padding: 16px 18px;
        gap: 6px;
    }
    .eea-bk__service.is-selected {
        padding-right: 48px;
    }
    .eea-bk__service-name {
        font-size: 16px;
        line-height: 1.25;
    }
    .eea-bk__service-price {
        font-size: 14px;
    }
    .eea-bk__service-meta {
        font-size: 12.5px;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .eea-bk__service-desc {
        display: block;
        flex-basis: 100%;
        margin-top: 2px;
        color: var(--eea-bk-mute);
        font-size: 12.5px;
        line-height: 1.55;
    }
    /* Hide separator on mobile since description goes to new line */
    .eea-bk__service-sep {
        display: none;
    }

    /* ===== CALENDAR ===== */
    .eea-bk__cal-title {
        font-size: 17px;
    }
    .eea-bk__day {
        font-size: 13px;
        border-radius: 8px;
    }
    .eea-bk__cal-weekdays span {
        font-size: 10px;
        padding: 6px 0;
    }

    /* ===== SLOTS ===== */
    .eea-bk__slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .eea-bk__slot {
        font-size: 12.5px;
        padding: 10px 6px;
        border-radius: 8px;
    }

    /* ===== FORM ===== */
    .eea-bk__row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    .eea-bk__field {
        margin-bottom: 10px;
    }
    .eea-bk__input,
    .eea-bk__textarea {
        padding: 14px 16px;
        font-size: 15px; /* 16px+ prevents iOS auto-zoom */
        border-radius: 10px;
    }
    .eea-bk__summary {
        padding: 14px 16px;
    }
    .eea-bk__summary ul {
        font-size: 13.5px;
        gap: 8px;
    }
    .eea-bk__summary strong {
        min-width: 70px;
        font-size: 13.5px;
    }
    .eea-bk__submit {
        padding: 15px 22px;
        font-size: 13px;
        letter-spacing: 1.3px;
    }
}

@media (max-width: 480px) {
    .eea-bk {
        padding: 36px 14px;
    }
    .eea-bk__card {
        padding: 20px 16px;
    }
    .eea-bk__slots {
        grid-template-columns: repeat(2, 1fr);
    }
    .eea-bk__service-name {
        font-size: 15.5px;
    }
    /* Calendar: tighter on very small screens */
    .eea-bk__cal-grid {
        gap: 2px;
    }
    .eea-bk__day {
        font-size: 12.5px;
    }
    .eea-bk__cal-head {
        margin-bottom: 10px;
    }
    /* Step head wraps better */
    .eea-bk__step-head {
        flex-wrap: wrap;
    }
    .eea-bk__tz {
        flex-basis: 100%;
        font-size: 10.5px;
        margin-top: 4px;
    }
}
