/* ============================================================
   WC Request a Quote - Public Styles
   ============================================================ */

/* Button */
.wcrq-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}
.wcrq-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
    opacity: 1 !important;
    filter: brightness(1.08) !important;
}
.wcrq-button:active { transform: translateY(0) !important; }
.wcrq-btn-icon { font-size: 15px; flex-shrink: 0; }
.wcrq-btn-label { font-size: 14px; font-weight: 600; }

.wcrq-button-wrap { margin: 12px 0 6px; display: block; }
.wcrq-loop-btn-wrap { margin: 8px 0 0; text-align: center; display: block; }
.wcrq-loop-btn { width: auto; justify-content: center !important; padding: 9px 16px !important; font-size: 13px !important; }

/* Price Label */
.wcrq-price-label {
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ============================================================
   Modal Overlay
   ============================================================ */
/* Modal hidden by default — class removed when opened */
.wcrq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: wcrqFadeIn 0.15s ease;
}
.wcrq-modal-overlay.wcrq-modal-hidden {
    display: none !important;
}
@keyframes wcrqFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wcrq-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: wcrqSlideUp 0.25s ease;
}
@keyframes wcrqSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.wcrq-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.07);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.wcrq-modal-close:hover { background: rgba(0,0,0,0.14); }

/* Modal Header */
.wcrq-modal-header {
    padding: 22px 28px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}
.wcrq-modal-header h2 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wcrq-modal-header h2::before {
    content: "\01F4C4";
    font-size: 20px;
}
.wcrq-modal-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
}
.wcrq-product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.wcrq-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wcrq-for-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.wcrq-product-link {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.wcrq-product-link:hover {
    text-decoration: underline;
    color: #1a252f;
}
.wcrq-modal-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Body */
.wcrq-modal-body { padding: 24px 32px 32px; }

/* Form */
.wcrq-form-row { display: flex; gap: 14px; }
.wcrq-form-two-col > .wcrq-form-group { flex: 1; min-width: 0; }

.wcrq-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}
.wcrq-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wcrq-required { color: #e74c3c; font-weight: 700; }
.wcrq-optional { color: #999; font-weight: 400; font-size: 12px; }

#wcrq-offer-price {
    padding: 10px 20px !important;
	text-align: left;
}

.wcrq-form-group input[type="text"],
.wcrq-form-group input[type="email"],
.wcrq-form-group input[type="number"],
.wcrq-form-group textarea {
    border: 1.5px solid #ddd;
    border-radius: 7px;
    padding: 10px 14px !important;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    outline: none;
    font-family: inherit;
    width: 100%;
	border-top-style: solid !important;
    border-right-style: solid !important;
    border-left-style: solid !important;
    box-sizing: border-box;
}
.wcrq-form-group input:focus,
.wcrq-form-group textarea:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44,62,80,0.08);
    background: #fff;
}
.wcrq-form-group input.wcrq-error,
.wcrq-form-group textarea.wcrq-error { border-color: #e74c3c; }
.wcrq-form-group textarea { resize: vertical; min-height: 90px; }

/* Price input */
.wcrq-price-input-wrap { position: relative; display: flex; align-items: center; }
.wcrq-currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}
.wcrq-price-input-wrap input { padding-left: 28px; }

/* Field errors */
.wcrq-field-error { font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
.wcrq-field-error.visible { display: block; }

/* Terms */
.wcrq-terms-group { margin-top: 4px; }
.wcrq-checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.wcrq-checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.wcrq-checkbox-label span { font-size: 13px; color: #555; font-weight: 400; }
.wcrq-checkbox-label a { color: #2c3e50; }

/* Notice */
.wcrq-notice { border-radius: 6px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.wcrq-notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Form actions */
.wcrq-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.wcrq-submit-btn { flex: 1; justify-content: center; padding: 13px 20px; font-size: 15px; }
.wcrq-cancel-btn {
    padding: 12px 18px;
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.wcrq-cancel-btn:hover { border-color: #bbb; color: #333; }

/* Spinner */
.wcrq-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcrqSpin 0.7s linear infinite;
    display: inline-block;
}
@keyframes wcrqSpin { to { transform: rotate(360deg); } }

/* Success State */
#wcrq-success-container { text-align: center; padding: 20px 0; }
.wcrq-success-icon {
    width: 72px;
    height: 72px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 20px;
    animation: wcrqPop 0.3s ease;
}
@keyframes wcrqPop { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
.wcrq-success-message { font-size: 15px; color: #333; margin-bottom: 8px; }
.wcrq-success-quote-num { font-size: 13px; color: #777; margin: 0; }

/* Responsive */
@media (max-width: 480px) {
    .wcrq-modal { border-radius: 12px 12px 0 0; max-height: 95vh; margin-top: auto; }
    .wcrq-modal-overlay { align-items: flex-end; padding: 0; }
    .wcrq-modal-header { padding: 24px 20px 16px; }
    .wcrq-modal-body { padding: 16px 20px 24px; }
    .wcrq-form-row { flex-direction: column; gap: 0; }
    .wcrq-form-actions { flex-direction: column; }
    .wcrq-cancel-btn { width: 100%; }
}
