/* Enquiry modal & form */
.enq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.enq-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    animation: enqSlideUp 0.25s ease;
}

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

.enq-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.enq-modal-header {
    padding: 24px 24px 0;
}

.enq-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.enq-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.enq-modal-header p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.enq-modal-body {
    padding: 20px 24px 24px;
}

.enq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.enq-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.enq-field--full {
    grid-column: 1 / -1;
}

.enq-field label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.enq-field input,
.enq-field select,
.enq-field textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.enq-field input:focus,
.enq-field select:focus,
.enq-field textarea:focus {
    border-color: #24b25a;
    background: #fff;
}

.enq-field textarea {
    resize: vertical;
    min-height: 88px;
}

.enq-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.enq-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.enq-btn--primary {
    flex: 1;
    background: linear-gradient(135deg, #24b25a, #10b981);
    color: #fff;
}

.enq-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.enq-btn--ghost {
    background: #f1f5f9;
    color: #475569;
}

.enq-alert {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.enq-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.enq-success-state {
    text-align: center;
    padding: 28px 16px;
}

.enq-success-state i {
    font-size: 42px;
    color: #22c55e;
    margin-bottom: 12px;
}

.enq-success-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.enq-success-state p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.ft-enquiry-sub {
    font-size: 12px;
    color: #6b7280;
    margin: -8px 0 14px;
}

.ft-top-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ft-header-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #24b25a, #10b981);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
}

.ft-drawer-enquiry {
    display: none;
    padding: 14px 16px 20px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.ft-drawer-enquiry-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #24b25a, #10b981);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cms-page-wrap {
    background: #f8fafc;
    min-height: 60vh;
}

.cms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #24b25a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cms-page-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cms-page-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.cms-page-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 22px 0 10px;
}

.cms-page-content p,
.cms-page-content li {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.cms-page-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.cms-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cms-sitemap-list li {
    border-bottom: 1px solid #f1f5f9;
}

.cms-sitemap-list a {
    display: block;
    padding: 12px 0;
    color: #24b25a;
    text-decoration: none;
    font-weight: 600;
}

.cms-loading {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.ft-footer-bottom a {
    color: inherit;
    text-decoration: none;
    margin: 0 4px;
}

.ft-footer-bottom a:hover {
    color: #24b25a;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .enq-modal-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .enq-modal {
        width: 100%;
        max-width: none;
        height: 75vh;
        max-height: 75vh;
        min-height: 0;
        border-radius: 18px 18px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: enqDrawerUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.15);
    }

    @keyframes enqDrawerUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .enq-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .enq-modal-header {
        flex-shrink: 0;
        padding: 12px 20px 0;
    }

    .enq-modal-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 20px 24px;
    }

    .enq-modal-close {
        top: 18px;
        right: 16px;
    }
}

@media (max-width: 767px) {
    .enq-form-grid {
        grid-template-columns: 1fr;
    }

    .enq-modal-header h3 {
        font-size: 19px;
        padding-right: 28px;
    }

    .cms-page-card {
        padding: 20px 16px;
    }
}
