/**
 * RFQ Modal Styles - Standard RFQ in Modal Window
 * 
 * @package MedEquip_Aggregator
 */

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */
.rfq-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-base__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.rfq-modal .modal-content {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODAL HEADER
   ========================================================================== */
.rfq-modal .modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.rfq-modal .modal-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.rfq-modal .modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.popup-base__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6b7280;
    transition: color 0.2s ease;
    z-index: 10;
}

.popup-base__close:hover {
    color: #1f2937;
}

.popup-base__close svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   MODAL BODY
   ========================================================================== */
.rfq-modal .modal-body {
    padding: 30px;
}

/* ==========================================================================
   TABS
   ========================================================================== */
.rfq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.rfq-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rfq-tab:hover {
    color: #111827;
}

.rfq-tab.active {
    color: #12356a;
    border-bottom-color: #12356a;
}

.rfq-tab-content {
    display: none;
}

.rfq-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   MODAL FOOTER
   ========================================================================== */
.rfq-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ==========================================================================
   MODAL OPEN STATE
   ========================================================================== */
body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .rfq-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .rfq-tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .rfq-modal .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .rfq-modal .modal-header,
    .rfq-modal .modal-body,
    .rfq-modal .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .rfq-modal {
        padding: 0;
    }
    
    .rfq-tabs {
        gap: 4px;
    }
    
    .rfq-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}

