/* ASM Quotes — Frontend */

/* CTA Button */
.asmq-cta-wrapper { text-align: center; }
.asmq-cta-btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 16px 32px; border: none; border-radius: 12px;
    background: #1e293b; color: #fff; cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.asmq-cta-btn:hover { background: #0f172a; transform: translateY(-1px); }
.asmq-cta-text { font-size: 16px; font-weight: 700; }
.asmq-cta-sub { font-size: 12px; font-weight: 400; opacity: 0.7; }

/* Overlay */
.asmq-overlay {
    position: fixed !important; top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    z-index: 2147483647 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 20px !important;
}

/* Modal */
.asmq-modal {
    position: relative !important; z-index: 2147483647 !important;
    background: #fff !important; border-radius: 16px; width: 100%; max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden;
    max-height: 90vh; overflow-y: auto;
}

/* Header */
.asmq-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px 24px 0;
}
.asmq-modal-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.asmq-modal-product { font-size: 13px; color: #64748b; margin-top: 2px; }
.asmq-modal-close {
    background: none; border: none; font-size: 24px; color: #94a3b8;
    cursor: pointer; padding: 0; line-height: 1;
}
.asmq-modal-close:hover { color: #475569; }

/* Form */
.asmq-form { padding: 20px 24px 24px; }
.asmq-form-row { display: flex; gap: 12px; }
.asmq-form-group { flex: 1; margin-bottom: 14px; }
.asmq-form-group label {
    display: block; font-size: 12px; font-weight: 600; color: #475569;
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px;
}
.asmq-form-group input,
.asmq-form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #1e293b; font-family: inherit;
    transition: border-color 0.15s;
}
.asmq-form-group input:focus,
.asmq-form-group textarea:focus {
    outline: none; border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148,163,184,0.15);
}
.asmq-form-group textarea { resize: vertical; min-height: 70px; }

/* Product recap */
.asmq-product-recap {
    margin-bottom: 16px; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 12px 14px;
}
.asmq-recap-inner { display: flex; align-items: center; gap: 12px; }
.asmq-recap-img {
    width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    background: #fff; border: 1px solid #f1f5f9;
}
.asmq-recap-img img { width: 100%; height: 100%; object-fit: cover; }
.asmq-recap-info { min-width: 0; }
.asmq-recap-label { font-size: 11px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.asmq-recap-name { font-size: 14px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Submit */
.asmq-submit-btn {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: #1e293b; color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
}
.asmq-submit-btn:hover { background: #0f172a; }
.asmq-submit-btn:disabled { background: #94a3b8; cursor: default; }

/* Error */
.asmq-form-error {
    margin-top: 10px; padding: 10px 14px; border-radius: 8px;
    background: #fef2f2; color: #991b1b; font-size: 13px; text-align: center;
}

/* Thank you */
.asmq-thanks-state {
    padding: 48px 24px; text-align: center;
}
.asmq-thanks-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #ecfdf5;
    color: #059669; font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.asmq-thanks-state h3 {
    font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 8px;
}
.asmq-thanks-state p {
    font-size: 14px; color: #64748b; line-height: 1.6; margin: 0 0 24px;
}
.asmq-thanks-close {
    padding: 10px 24px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #475569; font-size: 13px; font-weight: 500;
    cursor: pointer;
}
.asmq-thanks-close:hover { background: #f8fafc; }

/* Responsive */
@media (max-width: 540px) {
    .asmq-modal { max-width: 100%; border-radius: 12px; }
    .asmq-form-row { flex-direction: column; gap: 0; }
    .asmq-cta-btn { padding: 14px 20px; }
}
