/* =============================================================
   Voltique – Get a Quote styles
   ============================================================= */

/* ---- Quote button (loop) ---- */
.vq-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 600;
    background: var(--vq-accent, #e8401c);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .01em;
}
.vq-quote-btn:hover,
.vq-quote-btn:focus-visible {
    background: var(--vq-accent-dark, #c43516);
    transform: translateY(-1px);
    color: #fff;
}
.vq-quote-btn:active {
    transform: translateY(0);
}

/* ---- Quote button (single product) ---- */
.vq-single-quote-wrap {
    margin: 20px 0 10px;
}
.vq-single-quote-wrap .vq-quote-btn {
    font-size: 1rem;
    padding: 13px 28px;
    width: auto;
    border-radius: 10px;
}
.vq-single-quote-wrap .vq-quote-btn svg {
    flex-shrink: 0;
}
.vq-quote-hint {
    margin: 8px 0 0;
    font-size: .82rem;
    color: #888;
}

/* ---- Modal overlay ---- */
.vq-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: vqFadeIn .2s ease;
}
.vq-modal-overlay.is-open {
    display: flex;
}
@keyframes vqFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Prevent body scroll when modal is open */
body.vq-modal-open {
    overflow: hidden;
}

/* ---- Modal box ---- */
.vq-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    animation: vqSlideUp .25s ease;
}
@keyframes vqSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Close button ---- */
.vq-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.vq-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* ---- Modal header ---- */
.vq-modal h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vq-primary, #1a1a2e);
}
.vq-modal-sub {
    margin: 0 0 22px;
    font-size: .88rem;
    color: #888;
}

/* ---- Form fields ---- */
.vq-field {
    margin-bottom: 16px;
}
.vq-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.vq-field label span {
    color: var(--vq-accent, #e8401c);
}
.vq-field input,
.vq-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: .93rem;
    color: #222;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.vq-field input:focus,
.vq-field textarea:focus {
    outline: none;
    border-color: var(--vq-accent, #e8401c);
    box-shadow: 0 0 0 3px rgba(232,64,28,.12);
    background: #fff;
}
.vq-field input[readonly] {
    background: #f4f4f4;
    color: #666;
    cursor: default;
}
.vq-field textarea {
    resize: vertical;
    min-height: 80px;
}
.vq-field--half {
    max-width: 140px;
}

/* ---- Submit button ---- */
.vq-form-footer {
    margin-top: 22px;
}
.vq-submit {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--vq-accent, #e8401c);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .02em;
}
.vq-submit:hover:not(:disabled) {
    background: var(--vq-accent-dark, #c43516);
}
.vq-submit:disabled {
    opacity: .65;
    cursor: default;
}

/* ---- Feedback messages ---- */
.vq-form-msg {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    display: none;
}
.vq-form-msg:not(:empty) {
    display: block;
}
.vq-msg--success {
    background: #edfaf2;
    color: #1a7f4b;
    border: 1px solid #b8efd0;
}
.vq-msg--error {
    background: #fff2f2;
    color: #c0392b;
    border: 1px solid #f5bfbf;
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
    .vq-modal {
        padding: 28px 20px 22px;
        border-radius: 12px;
    }
    .vq-modal h2 {
        font-size: 1.2rem;
    }
    .vq-field--half {
        max-width: 100%;
    }
}
