/*-------------------------------------------------------*/
/* Book Appointment page
/*-------------------------------------------------------*/

/* Heading */
.bk-heading {
    max-width: 640px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
.bk-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #96706a;
}
.bk-heading p {
    font-size: 16px;
    color: #777;
}

/* Card layout: form + info panel */
.bk-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    max-width: calc(100% - 32px);
    width: 1040px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(24, 24, 24, .08), 0 2px 6px rgba(24, 24, 24, .04);
    text-align: left;
}
.bk-form {
    padding: 40px;
}
.bk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}
.bk-span {
    grid-column: 1 / -1;
}

/* Fields */
.bk-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #181818;
}
.bk-req {
    color: #96706a;
}
.bk-control {
    position: relative;
}
.bk-control > .fa {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8a19d;
    font-size: 16px;
    pointer-events: none;
    transition: color .2s ease;
}
.bk-control-area > .fa {
    top: 18px;
    transform: none;
}
.bk-control > .bk-caret {
    left: auto;
    right: 16px;
    font-size: 18px;
}
.bk-form .bk-input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px 0 46px;
    border: 1.5px solid #e6dcda;
    border-radius: 10px;
    background: #fbf8f7;
    color: #181818;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bk-form textarea.bk-input {
    height: auto;
    min-height: 130px;
    padding: 14px 16px 14px 46px;
    line-height: 1.5;
    resize: vertical;
}
.bk-form .bk-input::placeholder {
    color: #aaa;
}
.bk-form .bk-input:hover {
    border-color: #d6c6c3;
}
.bk-form .bk-input:focus {
    outline: none;
    border-color: #a8807a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(206, 184, 181, .3);
}
.bk-control:focus-within > .fa {
    color: #96706a;
}
.bk-form .flatpickr-input[readonly] {
    cursor: pointer;
    padding-right: 42px;
}

/* Invalid state */
.bk-field.is-invalid .bk-input {
    border-color: #d9534f;
    background: #fff;
}
.bk-field.is-invalid .bk-input:focus {
    box-shadow: 0 0 0 4px rgba(217, 83, 79, .15);
}
.bk-field.is-invalid .bk-control > .fa {
    color: #d9534f;
}
.bk-field-error {
    margin-top: 6px;
    font-size: 13px;
    color: #c9302c;
}

/* Info panel */
.bk-side {
    padding: 40px 32px;
    background: #181818;
    color: #cfc7c5;
}
.bk-side h4 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #fff;
}
.bk-side-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 20px;
    font-weight: 700;
    color: #ceb8b5;
}
.bk-side-phone:hover,
.bk-side-phone:focus {
    color: #fff;
}
.bk-side-title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.bk-side-title .fa {
    color: #ceb8b5;
    margin-right: 6px;
}
.bk-hours {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bk-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}
.bk-hours li span:first-child {
    color: #fff;
    font-weight: 600;
}
.bk-side-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: #9a918f;
}

/* Flatpickr: undo the site's global input styles inside the calendar */
.flatpickr-calendar input[type="number"],
.flatpickr-calendar input[type="text"] {
    height: inherit;
    width: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
    box-shadow: none;
}
.flatpickr-time input.flatpickr-hour,
.flatpickr-time input.flatpickr-minute {
    width: 100%;
    font-size: 16px;
}

/* Flatpickr theme to match the site */
.flatpickr-calendar {
    font-family: 'Barlow', sans-serif;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .15);
    border-radius: 10px;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #a8807a;
    border-color: #a8807a;
}
.flatpickr-day.today {
    border-color: #ceb8b5;
}
.flatpickr-day.today:hover {
    background: #ceb8b5;
    border-color: #ceb8b5;
    color: #fff;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
}

/* Request Callback button */
.buttonrow {
    margin-top: 30px;
    text-align: left;
}
.bk-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #999;
}
.bk-note .fa {
    margin-right: 4px;
}
.bk-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    min-height: 60px;
    padding: 0 40px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #b8948e 0%, #96706a 100%);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(150, 112, 106, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bk-submit .fa {
    font-size: 20px;
}
.bk-submit:hover,
.bk-submit:focus {
    color: #fff;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(150, 112, 106, .45);
    background: linear-gradient(135deg, #a8807a 0%, #7f5c57 100%);
}
.bk-submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(206, 184, 181, .6), 0 14px 30px rgba(150, 112, 106, .45);
}
.bk-submit:active {
    transform: translateY(0);
}
.bk-submit[disabled] {
    cursor: wait;
    opacity: .8;
    transform: none;
}

/* Result modal */
.bk-overlay {
    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(24, 24, 24, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.bk-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.bk-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 44px 32px 32px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    transform: translateY(20px) scale(.96);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.bk-overlay.is-open .bk-modal {
    transform: none;
}
.bk-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
}
.bk-modal-close:hover {
    color: #181818;
}
.bk-modal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}
.bk-modal.is-success .bk-modal-icon {
    background: linear-gradient(135deg, #b8948e, #96706a);
    box-shadow: 0 0 0 10px rgba(206, 184, 181, .25);
    animation: bk-pop .45s ease-out;
}
.bk-modal.is-warning .bk-modal-icon {
    background: #e8a33d;
    box-shadow: 0 0 0 10px rgba(232, 163, 61, .18);
}
.bk-modal.is-error .bk-modal-icon {
    background: #d9534f;
    box-shadow: 0 0 0 10px rgba(217, 83, 79, .15);
}
.bk-modal-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #181818;
}
.bk-modal-content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}
.bk-modal-content ul {
    display: inline-block;
    margin: 4px 0 0;
    padding-left: 18px;
    text-align: left;
}
.bk-modal-summary {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8f3f2;
    color: #181818;
    font-weight: 600;
}
.bk-modal-summary .fa {
    color: #a8807a;
    margin-right: 6px;
}
.bk-modal-ok {
    margin-top: 26px;
    min-width: 160px;
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 50px;
    background: #181818;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}
.bk-modal-ok:hover,
.bk-modal-ok:focus {
    background: #96706a;
    outline: none;
}
@keyframes bk-pop {
    0% { transform: scale(.4); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@media (max-width: 991px) {
    .bk-card {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 auto;
    }
    .bk-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 32px;
        align-items: start;
    }
    .bk-side h4,
    .bk-side-phone {
        grid-column: 1;
    }
    .bk-side-title,
    .bk-hours,
    .bk-side-note {
        grid-column: 2;
    }
    .bk-side-title {
        grid-row: 1;
    }
    .bk-hours {
        grid-row: 2 / span 2;
    }
}
@media (max-width: 767px) {
    .bk-heading {
        margin-bottom: 28px;
    }
    .bk-heading h3 {
        font-size: 26px;
    }
    .bk-card {
        margin: 0 auto;
        border-radius: 14px;
    }
    .bk-form {
        padding: 26px 20px;
    }
    .bk-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .bk-form .bk-input {
        font-size: 16px; /* stops iOS zooming into the field */
    }
    .bk-side {
        display: block;
        padding: 28px 20px;
    }
    .bk-submit {
        font-size: 16px;
        padding: 0 24px;
    }
    .bk-modal {
        padding: 40px 22px 26px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bk-overlay, .bk-modal, .bk-submit { transition: none; }
    .bk-modal.is-success .bk-modal-icon { animation: none; }
}

/* Soft page tint behind the card (this stylesheet only loads on the booking page) */
#faq.section-wrap {
    background-color: #faf6f5;
}
