/* Global module - Book a Call ("Talk to Cam"). The booking form: assets/css/booking-form.css */
.el-book {
    background: linear-gradient(180deg, #0f2938, #12324a);
    color: var(--el-color-white);
    scroll-margin-top: 110px;
}

/* Faint "el" mark in the top-right corner (same as the FAQ hero) */
.el-book {
    position: relative;
    overflow: hidden;
}

.el-book-mark {
    position: absolute;
    top: clamp(24px, 2.4vw, 48px);
    right: max(var(--el-gutter), calc((100vw - var(--el-container)) / 2 + var(--el-gutter)));
    font-family: var(--el-font-heading);
    font-size: clamp(150px, 13vw, 260px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: rgba(185, 203, 216, 0.12);
    pointer-events: none;
    user-select: none;
}

.el-book .container {
    position: relative;
}

.el-book-head {
    max-width: 900px;
    margin: 0 auto clamp(32px, calc(32px + 20 * (100vw - 1280px) / 640), 52px);
    text-align: center;
}

.el-book .el-eyebrow {
    color: #f8a06f;
}

.el-book-head h2 {
    margin: 0 0 clamp(14px, calc(14px + 6 * (100vw - 1280px) / 640), 20px);
}

.el-book-head p {
    margin: 0;
    font-size: clamp(17px, calc(17px + 3 * (100vw - 1280px) / 640), 20px);
    line-height: 1.6;
    opacity: 0.9;
}

/* Headings inside the white box keep the heading colour (the section's own headings are white). */
.el-book-box :is(h2, h3) {
    color: var(--el-color-heading);
}

/* The box: person (light grey) | booking (white). Not clipped, so the booking calendar can open past its
   edge; the grey panel takes the rounded corners instead. */
.el-book-box {
    --el-book-radius: clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    border-radius: var(--el-book-radius);
    background: var(--el-color-white);
    color: var(--el-color-text);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.el-book-person {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, calc(28px + 26 * (100vw - 1280px) / 640), 54px);
    border-radius: var(--el-book-radius) 0 0 var(--el-book-radius);
    background: #f3f6f9;
}

.el-book-who {
    display: flex;
    align-items: center;
    gap: clamp(16px, calc(16px + 6 * (100vw - 1280px) / 640), 22px);
    margin-bottom: clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px);
}

.el-book-photo {
    flex: none;
    width: clamp(76px, calc(76px + 20 * (100vw - 1280px) / 640), 96px);
    height: clamp(76px, calc(76px + 20 * (100vw - 1280px) / 640), 96px);
    border-radius: 50%;
    object-fit: cover;
}

.el-book-photo.is-empty {
    display: grid;
    place-items: center;
    background: var(--el-color-blue-dark);
    font-family: var(--el-font-heading);
    font-size: 36px;
    color: var(--el-color-white);
}

.el-book-who h3 {
    margin: 0 0 4px;
}

.el-book-who p {
    margin: 0;
    font-size: clamp(16px, calc(16px + 2 * (100vw - 1280px) / 640), 18px);
    color: var(--el-color-muted);
}

/* Location, clock, conversation: icon, small label, value */
.el-book-facts {
    display: grid;
    gap: clamp(18px, calc(18px + 6 * (100vw - 1280px) / 640), 24px);
    margin: 0 0 clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px);
}

.el-book-facts > div {
    position: relative;
    padding-left: 40px;
}

.el-book-facts dt {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c8b99;
}

.el-book-facts dt svg {
    position: absolute;
    top: -2px;
    left: 0;
    color: var(--el-color-orange);
}

.el-book-facts dd {
    margin: 0;
    font-size: clamp(17px, calc(17px + 3 * (100vw - 1280px) / 640), 20px);
    color: var(--el-color-text);
}

.el-book-clock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.el-book-clock time {
    font-family: var(--el-font-heading);
    font-size: clamp(24px, calc(24px + 6 * (100vw - 1280px) / 640), 30px);
    line-height: 1.2;
    color: var(--el-color-heading);
}

.el-book-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.el-book-open::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b7c3ce;
}

.el-book-open.is-open::before {
    background: #2e8b57;
}

.el-book-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: auto 0 0;
    padding-top: clamp(24px, calc(24px + 16 * (100vw - 1280px) / 640), 40px);
    border-top: 1px solid #dfe5ea;
    font-size: 17px;
}

.el-book-contact a {
    color: var(--el-color-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Booking side */
.el-book-form {
    padding: clamp(28px, calc(28px + 26 * (100vw - 1280px) / 640), 54px);
}

/* Link cards under the box */
.el-book-links {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(16px, calc(16px + 12 * (100vw - 1280px) / 640), 28px);
    margin-top: clamp(16px, calc(16px + 12 * (100vw - 1280px) / 640), 28px);
}

.el-book-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(24px, calc(24px + 14 * (100vw - 1280px) / 640), 38px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--el-color-white);
    transition: border-color var(--el-transition), background-color var(--el-transition);
}

.el-book-link::after {
    content: "";
    flex: none;
    width: 22px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform var(--el-transition);
}

.el-book-link:hover,
.el-book-link:focus-visible {
    border-color: rgba(248, 160, 111, 0.6);
    background: rgba(255, 255, 255, 0.07);
    color: var(--el-color-white);
}

.el-book-link:hover::after,
.el-book-link:focus-visible::after {
    transform: translateX(6px);
}

.el-book-link .el-eyebrow {
    margin-bottom: 8px;
}

/* The card title: the site h4 size */
.el-book-link-title {
    display: block;
    font-family: var(--el-font-heading);
    font-size: clamp(20px, 1.35vw, 26px);
    line-height: 1.25;
}

@media (max-width: 991px) {
    .el-book-box,
    .el-book-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .el-book-contact {
        margin-top: 0;
    }

    /* Stacked: the grey panel is on top */
    .el-book-person {
        border-radius: var(--el-book-radius) var(--el-book-radius) 0 0;
    }
}

@media (max-width: 767px) {
    .el-book-mark {
        display: none;
    }
}
