/* RfQ Popup Styles */
#rfq-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#rfq-popup-container {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 1.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

.dark #rfq-popup-container {
    background: #1e293b;
    color: #f8fafc;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#rfq-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dark #rfq-close-btn {
    background: rgba(255, 255, 255, 0.05);
}

#rfq-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.rfq-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .rfq-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.rfq-body {
    padding: 2rem;
}

.rfq-form-group {
    margin-bottom: 1.5rem;
}

.rfq-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.dark .rfq-label {
    color: #94a3b8;
}

.rfq-input, .rfq-select, .rfq-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    transition: all 0.2s;
}

.dark .rfq-input, .dark .rfq-select, .dark .rfq-textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.rfq-input:focus, .rfq-select:focus, .rfq-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.dark .rfq-input:focus, .dark .rfq-select:focus, .dark .rfq-textarea:focus {
    background: #1e293b;
}

/* Custom Multi-select */
.rfq-multi-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.dark .rfq-multi-select {
    background: #0f172a;
    border-color: #334155;
}

.rfq-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.rfq-checkbox-item input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 2px solid #cbd5e1;
    transition: all 0.2s;
}

.dark .rfq-checkbox-item input {
    border-color: #475569;
}

.rfq-checkbox-item input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.rfq-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.rfq-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.rfq-submit-btn:active {
    transform: translateY(0);
}

/* Success Message Overlay */
#rfq-success-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 1010;
    border-radius: 1.5rem;
}

.dark #rfq-success-overlay {
    background: #1e293b;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Floating Icon / FAB */
#rfq-floating-icon {
    position: fixed;
    bottom: 96px;
    right: 24px;
    height: 64px;
    min-width: 64px;
    padding: 0 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Orange gradient */
    color: white;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

#rfq-floating-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(234, 88, 12, 0.6);
}

#rfq-floating-icon .material-symbols-outlined {
    font-size: 32px;
    flex-shrink: 0;
}

#rfq-floating-icon .rfq-fab-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 0;
}

#rfq-floating-icon:hover .rfq-fab-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 12px;
}

/* Force hide old inline buttons as per user request */
.hide-inline-rfq {
    display: none !important;
}

/* Pulsing effect for the FAB */
#rfq-floating-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    border: 2px solid #f97316;
    animation: rfq-pulse 2s infinite;
}

@keyframes rfq-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 0; }
}

/* Map Ripple Animation */
@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.animate-ripple {
    animation: ripple 2s linear infinite;
}
