/* Explain: Styles for landing page elements, including booking form fields. */
.landing-hero {
    background:
        radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.12), transparent 42%),
        var(--surface-color);
}

.topbar-cta {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
}

@media (min-width: 640px) {
    .topbar-cta {
        min-height: 46px;
        padding: 0.6rem 1.35rem;
        font-size: 0.92rem;
    }
}

.booking-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 34px 64px -40px rgba(13, 31, 30, 0.55);
}

.booking-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

@media (min-width: 640px) {
    .booking-card {
        padding: 2rem;
    }
}

.booking-contact {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border-color);
}

.lab-btn-whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
    box-shadow: 0 16px 32px -20px rgba(21, 128, 61, 0.85);
}

.lab-btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #fff;
    transform: translateY(-2px);
}

.contact-band .lab-btn-whatsapp {
    border-color: rgba(255, 255, 255, 0.35);
}

.success-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1.7rem;
}

#bookingSuccessTitle:focus {
    outline: none;
}

/* Booking form: clearer, mobile-friendly fields (16px text avoids zoom on phone keyboards). */
.booking-card .lab-label {
    font-size: 0.88rem;
}

.booking-card .lab-input {
    min-height: 50px;
    font-size: 1rem;
}

.phone-field {
    position: relative;
}

.phone-prefix {
    position: absolute;
    inset-block: 0.6rem;
    left: 0;
    display: flex;
    align-items: center;
    padding-inline: 0.85rem 0.65rem;
    border-right: 1.5px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    pointer-events: none;
}

.booking-card .phone-input {
    padding-left: 4.6rem;
}

/* Booking page phone field: same fixed +965 prefix as the homepage form, with its own message under the field. */
.booking-phone-input {
    padding-left: 4.6rem;
    font-size: 1rem;
}

.booking-phone-input[aria-invalid="true"],
.booking-phone-input[aria-invalid="true"]:focus,
.booking-card .phone-input[aria-invalid="true"],
.booking-card .phone-input[aria-invalid="true"]:focus {
    border-color: var(--error-color);
}

.booking-phone-input[aria-invalid="true"]:focus,
.booking-card .phone-input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--error-color) 16%, transparent);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.4rem;
    color: var(--error-color);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.6;
}

.field-error i {
    margin-top: 0.2rem;
}

/* Booking page optional email: red frame only while a typed address is not valid. */
.booking-email-input[aria-invalid="true"],
.booking-email-input[aria-invalid="true"]:focus {
    border-color: var(--error-color);
}

.booking-email-input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--error-color) 16%, transparent);
}

/* Preferred contact time: large tap-friendly choices instead of a dropdown. */
.time-chip {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.time-chip-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.time-chip-box {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    min-height: 58px;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.9rem;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.time-chip-icon {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 1rem;
}

.time-chip-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.time-chip-hint {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.time-chip:hover .time-chip-box {
    border-color: var(--primary-color);
}

.time-chip-input:checked + .time-chip-box {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

.time-chip-input:checked + .time-chip-box .time-chip-title {
    color: var(--primary-color);
}

.time-chip-input:focus-visible + .time-chip-box {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.booking-submit {
    min-height: 56px;
    font-size: 1.05rem;
}

/* Booking page: preferred sample-collection date — large field, 16px text so phones don't zoom in. */
.slot-date {
    min-height: 52px;
    font-size: 1rem;
    cursor: pointer;
}

.slot-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
}

.slot-date::-webkit-date-and-time-value {
    text-align: start;
}

.mobile-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 55;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -18px 36px -28px rgba(13, 31, 30, 0.6);
    transition: transform 0.3s ease, visibility 0s linear 0s;
}

.mobile-cta.is-away {
    transform: translateY(115%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

@media (min-width: 768px) {
    .mobile-cta {
        display: none;
    }
}

.mobile-cta-book {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 50px;
    padding-inline: 0.9rem;
    font-size: 0.95rem;
}

.mobile-cta-alt {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 66px;
    min-height: 50px;
    padding: 0.3rem 0.55rem;
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mobile-cta-alt i {
    font-size: 1.1rem;
}

.mobile-cta-wa {
    background: var(--whatsapp-color);
    color: #fff;
}

.mobile-cta-wa:hover {
    background: var(--whatsapp-hover);
}

.mobile-cta-call {
    border-color: var(--border-color);
    background: #fff;
    color: var(--primary-color);
}

.mobile-cta-call:hover {
    background: var(--primary-soft);
}

/* Floating WhatsApp + call buttons (tablet and desktop; mobile uses the fixed bottom bar). */
.float-contact {
    display: none;
}

@media (min-width: 768px) {
    .float-contact {
        position: fixed;
        inset-inline-start: 1.25rem;
        inset-block-end: 1.5rem;
        z-index: 55;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .float-contact.is-away {
        opacity: 0;
        transform: translateY(1rem);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }
}

.float-btn {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.float-btn:hover,
.float-btn:focus-visible {
    transform: translateY(-3px);
}

.float-btn-wa {
    width: 58px;
    height: 58px;
    background: var(--whatsapp-color);
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 18px 34px -16px rgba(21, 128, 61, 0.85);
}

.float-btn-wa:hover {
    background: var(--whatsapp-hover);
}

.float-btn-call {
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.15rem;
    box-shadow: 0 16px 30px -18px rgba(13, 31, 30, 0.6);
}

.float-btn-call:hover {
    background: var(--primary-soft);
    border-color: var(--primary-color);
}

.float-btn-label {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: calc(100% + 0.6rem);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--text-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.float-btn:hover .float-btn-label,
.float-btn:focus-visible .float-btn-label {
    opacity: 1;
}