/**
 * WooBiavi Single DC - Quote Modal & Trigger Button
 */
.wb-quote-widget-wrapper {
    width: 100%;
    margin: 0px;
    box-sizing: border-box;
}

.wb-quote-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #65a30d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(101, 163, 13, 0.25);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.wb-quote-trigger-btn:hover {
    background-color: #4d7c0f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(101, 163, 13, 0.35);
}

.wb-quote-subtext {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
}

/* Modal Backdrop */
.wb-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wb-modal-backdrop.wb-open {
    display: flex;
    opacity: 1;
}

/* Modal Dialog */
.wb-modal-dialog {
    background-color: #ffffff;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.wb-modal-backdrop.wb-open .wb-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.wb-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.wb-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.wb-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
}

.wb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.wb-modal-close:hover {
    color: #0f172a;
}

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

/* Product Summary in Modal */
.wb-modal-product-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.wb-modal-product-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.wb-modal-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.wb-modal-product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

/* Form Styles */
.wb-form-row {
    margin-bottom: 14px;
}

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

@media (max-width: 500px) {
    .wb-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.wb-form-group {
    display: flex;
    flex-direction: column;
}

.wb-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.wb-form-group input[type="text"],
.wb-form-group input[type="email"],
.wb-form-group input[type="tel"],
.wb-form-group input[type="number"],
.wb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.wb-form-group input:focus,
.wb-form-group textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.wb-form-feedback {
    margin-bottom: 14px;
    font-size: 13px;
    display: none;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.4;
}

.wb-form-feedback.wb-success {
    display: block;
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.wb-form-feedback.wb-error {
    display: block;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.wb-quote-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wb-quote-submit-btn:hover {
    background-color: #0369a1;
}

.wb-quote-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.wb-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: wbSpin 0.7s linear infinite;
}

.wb-loading .wb-btn-spinner {
    display: inline-block;
}

@keyframes wbSpin {
    to { transform: rotate(360deg); }
}
