/* ==========================================================================
   Evonee Get Quote Modal CSS
   ========================================================================== */

:root {
    --eq-purple: #6d28d9;
    --eq-purple-dark: #4c1d95;
    --eq-purple-light: #f3f0fc;
    --eq-purple-bg: #faf9fd;
    --eq-border: #e5e0f5;
    --eq-text: #1e1b2e;
    --eq-muted: #6b6479;
    --eq-danger: #ef4444;
    --eq-success: #16a34a;
    --eq-radius: 12px;
    --eq-shadow: 0 20px 25px -5px rgba(109, 40, 217, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Honeypot field (hidden from users) */
.eq-honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.eq-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99990;
    background: #25D366;
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.eq-whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* Modal Overlay & Backdrop */
.eq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    box-sizing: border-box;
}

.eq-modal.eq-modal--active {
    display: flex;
    animation: eqFadeIn 0.25s ease-out forwards;
}

.eq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 12, 28, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Modal Container Dialog */
.eq-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 1040px;
    max-height: 92vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 12, 28, 0.25), 0 0 0 1px rgba(109, 40, 217, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: eqSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Close Button */
.eq-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    background: #f3f0fc !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: var(--eq-purple-dark) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.eq-modal-close:hover {
    background: var(--eq-purple) !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.08) !important;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35) !important;
}

.eq-modal-close:active {
    transform: scale(0.95) !important;
}

/* Header Section */
.eq-modal-header {
    padding: 22px 75px 20px 30px !important;
    border-bottom: 1px solid var(--eq-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--eq-purple-bg) 100%) !important;
    position: relative !important;
}

.eq-title {
    margin: 0 !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    color: var(--eq-text) !important;
    letter-spacing: -0.02em !important;
}

.eq-subtitle {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    color: var(--eq-muted) !important;
    max-width: 520px !important;
    line-height: 1.45 !important;
}

.eq-subtitle strong {
    color: var(--eq-purple) !important;
}

/* Header Feature Badges (Icons on TOP, Text BELOW, Centered) */
.eq-header-badges {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.eq-badge-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
}

.eq-badge-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--eq-purple-light) !important;
    color: var(--eq-purple) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.eq-badge-item:hover .eq-badge-icon {
    background: var(--eq-purple) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.eq-badge-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
}

.eq-badge-text strong {
    color: var(--eq-text) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.eq-badge-text span {
    color: var(--eq-muted) !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

/* Modal Body Layout */
.eq-modal-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 24px 30px;
    overflow-y: auto;
    max-height: calc(92vh - 90px);
}

.eq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 0;
    align-self: start;
}

/* Form Styles */
.eq-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eq-section {
    background: #ffffff;
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(109, 40, 217, 0.04);
}

.eq-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.eq-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--eq-purple);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--eq-text);
}

.eq-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}

.eq-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.eq-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.eq-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--eq-text);
}

.eq-req {
    color: var(--eq-danger);
}

.eq-field input[type="text"],
.eq-field input[type="email"],
.eq-field input[type="tel"],
.eq-field input[type="number"],
.eq-field input[type="date"],
.eq-field textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    border: 1px solid var(--eq-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--eq-text);
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

/* Custom Branded Dropdown Select Styling */
.eq-field select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding: 10px 38px 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border: 1px solid var(--eq-border) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: var(--eq-text) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.eq-field select:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15) !important;
}

/* Branded Option Highlighting (Matching #6d28d9) */
.eq-field select option,
.eq-phone-prefix option {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    background-color: #ffffff !important;
    color: #1e1b2e !important;
}

.eq-field select option:hover,
.eq-field select option:focus,
.eq-field select option:active,
.eq-field select option:checked,
.eq-phone-prefix option:hover,
.eq-phone-prefix option:focus,
.eq-phone-prefix option:active,
.eq-phone-prefix option:checked {
    background-color: #6d28d9 !important;
    color: #ffffff !important;
    background: linear-gradient(0deg, #6d28d9 0%, #6d28d9 100%) !important;
}

.eq-field input:focus,
.eq-field textarea:focus {
    border-color: var(--eq-purple);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.eq-field input.eq-invalid,
.eq-field select.eq-invalid {
    border-color: var(--eq-danger);
}

.eq-error-text {
    font-size: 11.5px;
    color: var(--eq-danger);
    min-height: 14px;
}

/* Phone input group */
.eq-phone-group {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.eq-phone-prefix {
    border: 1px solid var(--eq-border) !important;
    background: #faf9fd !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--eq-text) !important;
    height: 42px !important;
    cursor: pointer !important;
    outline: none !important;
    max-width: 140px !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

.eq-phone-group input[type="tel"] {
    flex: 1 !important;
}

/* Color swatch group */
.eq-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eq-color-picker-wrap input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--eq-border);
    border-radius: 6px;
    cursor: pointer;
}

/* Radio buttons */
.eq-radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.eq-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.eq-radio input {
    accent-color: var(--eq-purple);
}

/* Drag-and-drop zone */
.eq-dropzone {
    border: 2px dashed #c4b5fd;
    border-radius: 10px;
    background: #faf8ff;
    padding: 24px 16px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eq-dropzone:hover,
.eq-dropzone.eq-dragover {
    border-color: var(--eq-purple);
    background: var(--eq-purple-light);
}

.eq-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.eq-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.eq-upload-icon {
    margin-bottom: 4px;
}

.eq-dropzone-content strong {
    font-size: 14px;
    color: var(--eq-text);
}

.eq-dropzone-content span {
    font-size: 12.5px;
    color: var(--eq-muted);
}

.eq-dropzone-content small {
    font-size: 11px;
    color: #8c859b;
    margin-top: 2px;
}

.eq-file-preview {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--eq-border);
    border-radius: 6px;
    padding: 6px 10px;
    pointer-events: auto;
}

.eq-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;

}

.eq-remove-file {
    background: none;
    border: none;
    color: var(--eq-danger);
    font-size: 16px;
    cursor: pointer;
}

/* Checkboxes */
.eq-checkbox-wrap {
    margin-top: 10px;
}

.eq-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--eq-text);
    cursor: pointer;
}

.eq-checkbox input {
    margin-top: 3px;
    accent-color: var(--eq-purple);
}

.eq-help-note {
    font-size: 12px;
    color: var(--eq-purple-dark);
    background: var(--eq-purple-light);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

/* Submit Button & Footer Note */
.eq-submit-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 14px !important;
    width: 100% !important;
}

.eq-btn-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 52px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 20px -4px rgba(109, 40, 217, 0.4), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.eq-btn-submit span {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

.eq-btn-submit svg {
    transition: transform 0.25s ease !important;
    color: #ffffff !important;
}

.eq-btn-submit:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px -4px rgba(109, 40, 217, 0.5), 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.eq-btn-submit:hover svg {
    transform: translateX(5px) !important;
}

.eq-btn-submit:active {
    transform: translateY(0) scale(0.99) !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3) !important;
}

.eq-btn-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.eq-secure-note {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: var(--eq-muted) !important;
    text-align: center !important;
}

/* Alert Messages */
.eq-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.eq-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.eq-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Right Sidebar Cards */
.eq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eq-card {
    background: var(--eq-purple-bg);
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    padding: 16px 18px;
}

.eq-card-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--eq-text);
}

/* Selected Product Card */
.eq-card-product {
    background: #ffffff;
}

.eq-product-preview {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.eq-product-img-wrap {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e5e0f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

.eq-product-img-wrap img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.eq-product-info {
    flex: 1 !important;
}

.eq-product-info h5 {
    margin: 0 0 4px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--eq-text) !important;
}

.eq-product-info p {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--eq-muted) !important;
    line-height: 1.4 !important;
}

/* Live Price Calculator Sidebar Card */
.eq-card-calculator {
    background: linear-gradient(135deg, #fdfbfb 0%, #f4f0fd 100%) !important;
    border: 1px solid #ddd6fe !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.05) !important;
}

.eq-calc-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}

.eq-calc-header .eq-card-title {
    margin: 0 !important;
}

.eq-live-badge {
    background: #6d28d9 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.eq-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: var(--eq-text) !important;
    padding: 4px 0 !important;
}

.eq-price-total-row {
    border-top: 1px dashed #c4b5fd !important;
    margin-top: 6px !important;
    padding-top: 8px !important;
    font-weight: 700 !important;
}

.eq-price-val {
    font-weight: 700 !important;
    color: var(--eq-purple) !important;
}

.eq-price-total-val {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #5b21b6 !important;
}

.eq-price-note {
    margin-top: 6px !important;
    font-size: 11px !important;
    color: var(--eq-muted) !important;
    line-height: 1.3 !important;
}

/* Checklist */
.eq-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eq-checklist li {
    font-size: 12px;
    color: var(--eq-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eq-check-icon {
    width: 14px;
    height: 14px;
    stroke: var(--eq-purple);
    stroke-width: 3;
    fill: none;
    flex-shrink: 0;
}

/* How It Works Steps */
.eq-card-works {
    background: #fffdf5;
    border-color: #fef08a;
}

.eq-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.eq-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eq-purple);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.eq-step-item strong {
    display: block;
    font-size: 12.5px;
    color: var(--eq-text);
}

.eq-step-item p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--eq-muted);
    line-height: 1.3;
}

/* Need Help */
.eq-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
}

.eq-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--eq-text);
}

.eq-contact-list a {
    color: var(--eq-purple-dark);
    text-decoration: none;
    font-weight: 600;
}

.eq-contact-list a:hover {
    text-decoration: underline;
}

/* Safe Badge Card */
.eq-card-safe {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.eq-safe-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #15803d;
    margin-bottom: 6px;
}

.eq-card-safe p {
    margin: 0;
    font-size: 11.5px;
    color: #166534;
    line-height: 1.4;
}

/* Animations */
@keyframes eqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes eqSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile Responsive */
@media (max-width: 820px) {
    .eq-modal-body {
        grid-template-columns: 1fr;
    }

    .eq-header-badges {
        display: none;
    }
}

@media (max-width: 640px) {
    .eq-modal {
        padding: 0;
    }

    .eq-modal-dialog {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .eq-grid-2 {
        grid-template-columns: 1fr;
    }
}
