/* ============ Cards (shared) ============ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.card:hover .card-media img { transform: scale(1.06); }

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--fs-h3);
    margin-bottom: 0.35rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--fs-small);
    color: var(--moss);
    margin-bottom: var(--space-3);
}

.card-price {
    font-family: var(--font-display);
    color: var(--accent-dark);
    font-weight: 600;
}

/* ============ Chat float widget ============ */
.chat-float {
    position: fixed;
    z-index: 300;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: var(--font-body);
}

.chat-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(232, 123, 44, 0.45);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.chat-fab:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 50px rgba(232, 123, 44, 0.55);
}

.chat-fab:active {
    transform: scale(0.98);
}

.chat-fab__icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: all 0.3s var(--ease);
}

.chat-fab__icon--close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chat-fab[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    box-shadow: 0 16px 40px rgba(21, 48, 36, 0.5);
}

.chat-fab[aria-expanded="true"] .chat-fab__icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.chat-fab[aria-expanded="true"] .chat-fab__icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chat-fab__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* Pulse dot */
.chat-fab::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: chatPulse 2s infinite;
}

.chat-fab[aria-expanded="true"]::after {
    display: none;
}

@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 1rem);
    width: min(380px, calc(100vw - 1.5rem));
    height: min(560px, calc(100vh - 140px));
    max-height: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 40px 90px rgba(21, 48, 36, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--ease);
    transform-origin: bottom right;
}

.chat-float.is-open .chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-panel__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.chat-panel__back {
    width: 32px;
    height: 32px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s var(--ease);
    flex-shrink: 0;
}

.chat-panel__back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chat-panel__back[hidden] {
    display: none;
}

.chat-panel__back svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-panel__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.chat-panel__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    background: #fff;
}

.chat-panel__identity > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.chat-panel__title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
}

.chat-panel__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.chat-panel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.chat-panel__close {
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s var(--ease);
    flex-shrink: 0;
}

.chat-panel__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chat-panel__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-panel__body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.chat-view[hidden] {
    display: none;
}

.chat-hub {
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    overflow-y: auto;
    flex: 1;
}

.chat-hub__banner {
    position: relative;
    min-height: 116px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.85rem;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.chat-hub__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 24, 18, 0.05) 0%, rgba(10, 24, 18, 0.78) 100%);
}

.chat-hub__banner-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.chat-hub__banner-title {
    max-width: 16rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.chat-hub__greeting h2 {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.chat-hub__greeting p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.chat-hub__options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.chat-hub__option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    font-family: var(--font-body);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.chat-hub__option:hover {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(232, 123, 44, 0.04) 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(232, 123, 44, 0.12);
    transform: translateX(4px);
}

.chat-hub__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-hub__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.chat-hub__icon--ai {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
}

.chat-hub__icon--wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.chat-hub__icon--mail {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.chat-hub__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.chat-hub__content strong {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.chat-hub__content small {
    font-size: 0.76rem;
    color: var(--text);
    line-height: 1.3;
}

.chat-hub__chevron {
    width: 18px;
    height: 18px;
    stroke: var(--moss);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.chat-hub--compact {
    padding: 1.25rem 1rem;
}

.chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 123, 44, 0.3) transparent;
}

.chat-thread::-webkit-scrollbar {
    width: 6px;
}

.chat-thread::-webkit-scrollbar-track {
    background: transparent;
}

.chat-thread::-webkit-scrollbar-thumb {
    background: rgba(232, 123, 44, 0.3);
    border-radius: 3px;
}

.chat-thread::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 123, 44, 0.5);
}

.chat-form { display: flex; flex-direction: column; gap: var(--space-3); }

.chat-form input[type="text"],
.chat-form input[type="email"],
.chat-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.chat-form textarea { min-height: 96px; resize: vertical; }

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.2);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-block { width: 100%; }

@media (max-width: 640px) {
    .chat-float {
        right: 0.9rem;
        bottom: 0.9rem;
    }

    .chat-fab {
        width: 56px;
        height: 56px;
    }

    .chat-fab__icon {
        width: 24px;
        height: 24px;
    }

    .chat-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(88vh, 720px);
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
        transform-origin: bottom center;
    }

    .chat-float.is-open .chat-panel {
        transform: translateY(0);
    }

    .chat-panel__header {
        border-radius: 22px 22px 0 0;
        padding: 0.9rem 0.9rem 0.9rem 1rem;
    }

    .chat-fab::after {
        top: 2px;
        right: 2px;
    }
}

/* ============ AI Chat View ============ */
.chat-thread__day {
    align-self: center;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    background: rgba(21, 48, 36, 0.06);
    color: var(--moss);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Message wrapper - contains avatar + bubble */
.chat-msg-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 88%;
    animation: msgSlideIn 0.3s var(--ease);
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* User message (right-aligned) */
.chat-msg-wrap--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-wrap--bot {
    align-self: flex-start;
}

/* Avatar */
.chat-msg-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}

.chat-msg-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.chat-msg-wrap--user .chat-msg-avatar {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    order: 1;
}

.chat-msg-wrap--bot .chat-msg-avatar {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    order: 0;
}

/* Message bubble */
.chat-msg {
    position: relative;
    padding: 0.65rem 0.95rem;
    font-size: 0.86rem;
    line-height: 1.55;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.chat-msg-wrap--user .chat-msg {
    background: linear-gradient(135deg, var(--accent) 0%, #f08c3e 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg-wrap--bot .chat-msg {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Message time */
.chat-msg-time {
    display: block;
    margin-top: 0.3rem;
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
    letter-spacing: 0.02em;
}

.chat-msg-wrap--bot .chat-msg-time {
    text-align: left;
}

.chat-msg-wrap--user .chat-msg-time {
    color: rgba(255, 255, 255, 0.9);
}

.chat-msg-wrap--bot .chat-msg-time {
    color: var(--moss);
}

/* Welcome message styling */
.chat-msg-welcome {
    background: linear-gradient(135deg, rgba(232, 123, 44, 0.08), rgba(21, 48, 36, 0.05)) !important;
    border: 1px solid rgba(232, 123, 44, 0.18) !important;
    border-bottom-left-radius: 16px !important;
}

/* Quick reply chips */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-left: 36px;
}

.chat-suggestion {
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(232, 123, 44, 0.35);
    border-radius: 50px;
    background: #fff;
    color: var(--accent-dark);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chat-suggestion:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
    color: var(--text);
    animation: msgSlideIn 0.3s var(--ease);
}

.chat-typing[hidden] {
    display: none;
}

.chat-typing__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    flex-shrink: 0;
    position: relative;
}

.chat-typing__avatar::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.chat-typing__bubble {
    display: flex;
    gap: 4px;
    padding: 0.55rem 0.8rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chat-typing__dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.chat-typing__dots span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing__dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing__dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Composer */
.chat-composer {
    flex-shrink: 0;
    padding: 0.7rem 0.85rem 0.5rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.chat-composer__inner {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    padding: 0.3rem 0.35rem 0.3rem 0.85rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-composer__inner:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.12);
}

.chat-composer__input {
    flex: 1;
    min-height: 36px;
    max-height: 92px;
    resize: none;
    padding: 0.45rem 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--ink);
    outline: none;
    scrollbar-width: thin;
}

.chat-composer__input::placeholder {
    color: var(--moss);
}

.chat-composer__send {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chat-composer__send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 2px;
}

.chat-composer__send:hover:not(:disabled) {
    transform: scale(1.08) rotate(-8deg);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.chat-composer__send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.chat-composer__hint {
    margin-top: 0.35rem;
    padding-left: 0.85rem;
    font-size: 0.64rem;
    color: var(--moss);
    text-align: center;
    letter-spacing: 0.02em;
}

.chat-composer__hint kbd {
    padding: 0.05rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--cream);
    font-family: inherit;
    font-size: 0.62rem;
}

.chat-status {
    flex-shrink: 0;
    padding: 0 1rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--moss);
    background: #fff;
}

.chat-status:empty {
    display: none;
}

.chat-status.is-error {
    color: #b91c1c;
    padding-bottom: 0.4rem;
}

/* WhatsApp number rows */
.chat-hub--compact .chat-hub__option {
    cursor: pointer;
}

.chat-hub--compact .chat-hub__option small {
    color: var(--moss);
}

/* Markdown-like formatting in bot messages */
.chat-msg--bot a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    word-break: break-word;
}

.chat-msg--bot a:hover { color: var(--accent); }

.chat-msg--bot strong { font-weight: 700; }

/* Pre-chat modal inside the widget */
.chat-modal[hidden] { display: none; }

.chat-modal {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.chat-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 18, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s var(--ease);
}

.chat-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 310px;
    padding: 1.4rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 24, 18, 0.35);
    animation: slideUp 0.25s var(--ease);
}

.chat-modal__box h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.chat-modal__box > p {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text);
}

.chat-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.chat-modal__fields label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
}

.chat-modal__fields input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-modal__fields input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.15);
}

.chat-modal__box .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.chat-modal__box .btn:hover {
    background: var(--accent-dark);
}

/* ============ User Info Prompt ============ */
.chat-info-prompt {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    background: rgba(10, 14, 12, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s var(--ease);
}

.chat-info-prompt__box {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 30px 70px rgba(21, 48, 36, 0.35);
    animation: slideUp 0.3s var(--ease);
}

.chat-info-prompt__box h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--ink);
}

.chat-info-prompt__box p {
    margin: 0 0 1.2rem;
    font-size: var(--fs-small);
    color: var(--text);
}

.chat-info-prompt__fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: 1.2rem;
}

.chat-info-prompt__fields input {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.chat-info-prompt__fields input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Enquiry modal (site-wide) ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    background: rgba(10, 14, 12, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.modal-overlay[hidden] { display: none; }

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: min(480px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    padding: 1.6rem;
    transform: translateY(24px) scale(0.98);
    transition: transform var(--dur) var(--ease);
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}

.modal-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 1.4rem;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
}

.modal-head-text h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-head-text p {
    margin: 0.2rem 0 0;
    font-size: var(--fs-small);
    color: var(--text);
}

.modal-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--ink);
    color: #fff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.modal-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--ink);
}

.req { color: var(--accent-dark); }

.modal-field input[type="text"],
.modal-field input[type="email"],
.modal-field input[type="tel"],
.modal-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.modal-field textarea {
    min-height: 110px;
    resize: vertical;
}

.modal-field input:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.2);
}

.modal-submit {
    width: 100%;
    border-radius: 4px;
}

.modal-status {
    margin-top: var(--space-3);
    font-size: var(--fs-small);
    line-height: 1.45;
    min-height: 1.3em;
    color: var(--moss);
}

.modal-status.is-error { color: var(--accent-dark); }

body.modal-open { overflow: hidden; }
