.enquiry-shell {
    padding-bottom: 72px;
}

.enquiry-hero {
    margin-top: 24px;
}

.enquiry-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.2fr) minmax(250px, 0.78fr);
    gap: 22px;
    align-items: start;
}

.enquiry-side {
    display: grid;
    gap: 18px;
}

.enquiry-notice p {
    margin-bottom: 18px;
    font-weight: 600;
}

.enquiry-mini-benefit {
    display: grid;
    gap: 6px;
}

.enquiry-mini-benefit strong {
    font-size: 1rem;
}

.enquiry-mini-benefit span {
    color: var(--muted);
}

.enquiry-form-card {
    padding: 0;
    overflow: hidden;
}

.enquiry-form {
    padding: 28px;
}

.enquiry-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.enquiry-form-grid label,
.enquiry-field-group {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 700;
}

.enquiry-form-grid input[type="text"],
.enquiry-form-grid input[type="email"],
.enquiry-form-grid select,
.enquiry-form-grid textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid rgba(214, 227, 224, 0.96);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.enquiry-form-grid textarea {
    min-height: 150px;
    resize: vertical;
}

.enquiry-form-grid input:disabled {
    background: rgba(236, 244, 243, 0.96);
    color: var(--muted);
}

.enquiry-form-grid .full-width {
    grid-column: 1 / -1;
}

.enquiry-section-label {
    display: inline-flex;
    align-items: center;
    padding-top: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 52px;
    font-weight: 600;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.enquiry-submit-row {
    margin-top: 22px;
}

.enquiry-status-card {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 16px;
}

.enquiry-status-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.enquiry-status-head strong {
    font-size: 1.35rem;
}

.enquiry-status-head span {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.enquiry-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #dfe9e6;
    overflow: hidden;
}

.enquiry-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34a853, var(--accent));
    transition: width 0.24s ease;
}

.enquiry-progress-scale {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.enquiry-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.enquiry-checklist li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
}

.enquiry-checklist li::before {
    content: "";
    position: absolute;
    top: 0.54rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c2d3cf;
}

.enquiry-checklist li.complete {
    color: var(--text);
    font-weight: 700;
}

.enquiry-checklist li.complete::before {
    background: #34a853;
}

.enquiry-error-message {
    background: rgba(197, 44, 44, 0.08);
    border: 1px solid rgba(197, 44, 44, 0.16);
}

@media (max-width: 1180px) {
    .enquiry-layout {
        grid-template-columns: 1fr;
    }

    .enquiry-status-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .enquiry-form {
        padding: 22px 18px;
    }

    .enquiry-form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-row {
        align-items: flex-start;
        min-height: 0;
    }

    .enquiry-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
}

body.whatsapp-widget-open {
    overflow: hidden;
}

@keyframes alkemist-whatsapp-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0.08);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
    }
}

.whatsapp-enquiry-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 96;
}

.whatsapp-enquiry-widget__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
    cursor: pointer;
    animation: alkemist-whatsapp-pulse 1.8s ease-in-out infinite;
}

.whatsapp-enquiry-widget__toggle svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-enquiry-widget__overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 25, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.whatsapp-enquiry-widget__panel {
    position: fixed;
    right: 20px;
    bottom: 94px;
    width: min(430px, calc(100vw - 24px));
    max-height: min(760px, calc(100vh - 120px));
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(214, 227, 224, 0.96);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 249, 0.99));
    box-shadow: 0 28px 64px rgba(7, 18, 25, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

.whatsapp-enquiry-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.whatsapp-enquiry-widget__head h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.whatsapp-enquiry-widget__head p {
    margin: 0;
    color: var(--muted);
}

.whatsapp-enquiry-widget__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(13, 68, 87, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-enquiry-widget__form .portal-message {
    margin-bottom: 14px;
}

.whatsapp-enquiry-widget__form,
.whatsapp-enquiry-widget__panel .portal-message {
    width: 100%;
}

.whatsapp-enquiry-widget__panel .portal-message.success {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.whatsapp-enquiry-widget__panel .portal-message.success .btn {
    width: 100%;
}

.whatsapp-enquiry-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-enquiry-form-grid textarea {
    min-height: 132px;
}

.whatsapp-enquiry-submit-row {
    margin-top: 18px;
}

body.whatsapp-widget-open .whatsapp-enquiry-widget__overlay {
    opacity: 1;
    pointer-events: auto;
}

body.whatsapp-widget-open .whatsapp-enquiry-widget__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

body.whatsapp-widget-open .whatsapp-enquiry-widget__toggle {
    animation: none;
}

.lab-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 97;
}

.lab-chat-widget__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5b95, #16856f);
    color: #ffffff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 91, 149, 0.28);
    cursor: pointer;
}

.lab-chat-widget__toggle svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.lab-chat-widget__overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 25, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.lab-chat-widget__panel {
    position: fixed;
    right: 20px;
    bottom: 148px;
    width: min(480px, calc(100vw - 24px));
    max-height: min(780px, calc(100vh - 170px));
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(214, 227, 224, 0.96);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 249, 0.99)),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 34%);
    box-shadow: 0 30px 70px rgba(7, 18, 25, 0.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

.lab-chat-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.lab-chat-widget__head h3 {
    margin: 8px 0 0;
    color: var(--visitor-heading-ink, #07344a);
    font-size: clamp(1.28rem, 3vw, 1.72rem);
    line-height: 1.08;
}

.lab-chat-widget__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(13, 68, 87, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.lab-chat-widget__form,
.lab-chat-widget__panel .client-chat-thread {
    width: 100%;
}

.lab-chat-widget__panel .client-chat-messages {
    max-height: min(320px, 34dvh);
}

.lab-chat-widget__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-chat-widget__grid textarea {
    min-height: 116px;
}

.lab-chat-widget__actions {
    margin-top: 16px;
}

body.lab-chat-widget-open .lab-chat-widget__overlay {
    opacity: 1;
    pointer-events: auto;
}

body.lab-chat-widget-open .lab-chat-widget__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

body.whatsapp-widget-open .lab-chat-widget,
body.lab-chat-widget-open .whatsapp-enquiry-widget {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .whatsapp-enquiry-widget {
        right: 14px;
        bottom: 14px;
        left: auto;
    }

    .whatsapp-enquiry-widget__toggle {
        width: 56px;
        min-width: 56px;
        min-height: 56px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }

    .whatsapp-enquiry-widget__toggle span {
        display: none;
    }

    .whatsapp-enquiry-widget__toggle svg {
        width: 23px;
        height: 23px;
    }

    .whatsapp-enquiry-widget__panel {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        max-height: calc(100vh - 116px);
        padding: 18px;
        border-radius: 24px;
    }

    .whatsapp-enquiry-form-grid {
        grid-template-columns: 1fr;
    }

    .lab-chat-widget {
        right: 14px;
        bottom: 80px;
    }

    .lab-chat-widget__toggle {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 999px;
        font-size: 0.74rem;
    }

    .lab-chat-widget__toggle svg {
        width: 18px;
        height: 18px;
    }

    .lab-chat-widget__panel {
        right: 12px;
        left: 12px;
        bottom: 136px;
        width: auto;
        max-height: calc(100vh - 164px);
        padding: 18px;
        border-radius: 24px;
    }

    .lab-chat-widget__grid {
        grid-template-columns: 1fr;
    }
}
