@charset "UTF-8";
/* Quote System Styles */


/* Modal Overlay */
.quote-modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    backdrop-filter: none;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

/* Modal Content Box */
.quote-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 24px 26px;
    border: 1px solid #e5e7eb;
    width: min(92vw, 660px);
    max-width: 660px;
    max-height: min(82vh, 760px);
    overflow-y: auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    animation: modalFadeIn 0.3s;
    scrollbar-width: thin;
    scrollbar-color: #9aa7b8 #eef2f7;
}

.quote-modal-content::-webkit-scrollbar {
    width: 8px;
}

.quote-modal-content::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.quote-modal-content::-webkit-scrollbar-thumb {
    background: #9aa7b8;
    border-radius: 999px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.quote-close-btn {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 16px;
    line-height: 1;
    transition: color 0.2s;
}

.quote-close-btn:hover,
.quote-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles */
#quoteForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 12px;
}

.quote-form-header {
    text-align: center;
    margin-bottom: 2px;
    grid-column: 1 / -1;
}

.quote-form-header h2 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
    color: #333;
}

.quote-form-header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.quote-form-group {
    margin-bottom: 0;
    min-width: 0;
}

.quote-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px !important;
    font-weight: 500;
    color: #333;
}

.quote-form-group input,
.quote-form-group select,
.quote-form-group textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    font-size: 13px !important;
    line-height: 1.3;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Identify box sizing issues */
    font-family: inherit;
}

.quote-form-group input:focus,
.quote-form-group select:focus,
.quote-form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.quote-form-group input.quote-auth-readonly {
    background: #f8fafc;
    color: #475569;
    border-color: #d8dee8;
}

.quote-form-group textarea {
    resize: vertical;
    min-height: 72px;
}

#quoteProduct {
    min-height: 78px;
    max-height: 118px;
    overflow-y: auto;
}

#quoteMessage {
    min-height: 64px;
    max-height: 96px;
}

.quote-business-fields {
    display: contents;
}

.quote-form-group:has(#quoteProduct),
.quote-form-group:has(#quoteMessage),
.quote-form-group--seller,
.quote-submit-btn {
    grid-column: 1 / -1;
}

.quote-form-group label span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.quote-ruc-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.quote-ruc-control input {
    min-width: 0;
}

.quote-ruc-validate-btn {
    min-width: 86px;
    padding: 0 12px;
    border: 1px solid #111;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.quote-ruc-validate-btn:hover {
    background: #333;
    border-color: #333;
}

.quote-ruc-validate-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.quote-ruc-status {
    min-height: 15px;
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
}

.quote-ruc-status[data-state="success"] {
    color: #137333;
}

.quote-ruc-status[data-state="warning"] {
    color: #9a6700;
}

.quote-ruc-status[data-state="loading"] {
    color: #444;
}

.quote-ruc-status[data-state="error"] {
    color: #b00020;
}

/* Submit Button */
.quote-submit-btn {
    width: 100%;
    padding: 11px 14px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-submit-btn:hover {
    background-color: #333;
}

.quote-submit-btn:active {
    transform: scale(0.98);
}

.quote-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Spinner for loading state */
.quote-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .quote-modal-content {
        padding: 20px 16px;
        width: 100%;
    }

    #quoteForm {
        grid-template-columns: 1fr;
    }

    .quote-ruc-control {
        grid-template-columns: 1fr;
    }

    .quote-ruc-validate-btn {
        min-height: 38px;
    }
}
