/* ========================================
   Price Inquiry Button
   ======================================== */
.pi-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}
.pi-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}
.pi-inquiry-btn:active { transform: translateY(0); }
.pi-inquiry-btn svg { flex-shrink: 0; }

/* ========================================
   Floating Contact Button
   ======================================== */
#pi-floating-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999998;
}
.pi-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
    transition: all 0.3s ease;
    animation: pi-pulse 2s ease-in-out infinite;
}
.pi-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(16, 185, 129, 0.6);
    animation: none;
}
@keyframes pi-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45); }
    50% { box-shadow: 0 6px 35px rgba(16, 185, 129, 0.7), 0 0 0 10px rgba(16, 185, 129, 0.1); }
}

/* ========================================
   Overlay & Modal (shared)
   ======================================== */
.pi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pi-overlay.pi-visible { opacity: 1; }

.pi-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    direction: rtl;
    text-align: right;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}
.pi-overlay.pi-visible .pi-modal { transform: translateY(0) scale(1); }

/* Contact modal is wider */
.pi-contact-modal { max-width: 480px; }

/* Close */
.pi-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}
.pi-close:hover { background: #e5e7eb; color: #1f2937; }

/* ========================================
   Modal Header
   ======================================== */
.pi-modal-header { text-align: center; margin-bottom: 24px; }
.pi-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #667eea;
}
.pi-icon-green {
    background: linear-gradient(135deg, #10b98120, #05966920) !important;
    color: #10b981 !important;
}
.pi-modal-header h3 { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.pi-product-name {
    font-size: 14px; color: #667eea; font-weight: 600; margin: 0 0 12px;
    padding: 6px 16px; background: #667eea10; border-radius: 20px; display: inline-block;
}
.pi-subtitle { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0; }
.pi-subtitle strong { color: #1f2937; }

/* ========================================
   Form Fields
   ======================================== */
.pi-field { margin-bottom: 16px; }
.pi-field label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.pi-req { color: #ef4444; }
.pi-field input {
    width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb; color: #1f2937; box-sizing: border-box;
}
.pi-field input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.15); background: #fff; }
.pi-field input.pi-input-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.pi-error { display: block; font-size: 12px; color: #ef4444; margin-top: 4px; }

/* ========================================
   Buttons
   ======================================== */
.pi-submit-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; font-family: inherit; margin-top: 8px;
}
.pi-submit-btn:hover { box-shadow: 0 6px 25px rgba(102,126,234,0.45); transform: translateY(-1px); }
.pi-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.pi-btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.pi-btn-green:hover { box-shadow: 0 6px 25px rgba(16,185,129,0.45) !important; }

.pi-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: pi-spin 0.6s linear infinite; vertical-align: middle; margin-left: 6px;
}
@keyframes pi-spin { to { transform: rotate(360deg); } }

/* ========================================
   Success (Price Inquiry)
   ======================================== */
.pi-success-content { text-align: center; padding: 20px 0; }
.pi-success-icon { margin-bottom: 20px; animation: pi-bounce 0.6s ease; }
@keyframes pi-bounce { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.pi-success-content h3 { font-size: 20px; font-weight: 700; color: #1f2937; margin: 0 0 12px; }
.pi-success-msg { font-size: 15px; color: #6b7280; line-height: 1.8; margin: 0 0 24px; }
.pi-success-msg strong { color: #10b981; }
.pi-close-success {
    max-width: 200px; margin: 0 auto; display: block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.35) !important;
}

/* ========================================
   Contact Modal Sections
   ======================================== */
.pi-contact-section { margin-bottom: 4px; }
.pi-section-title {
    font-size: 16px; font-weight: 700; color: #1f2937;
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.pi-section-icon { font-size: 18px; }
.pi-section-desc { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0 0 14px; }
.pi-section-desc strong { color: #1f2937; }

.pi-divider { height: 1px; background: #e5e7eb; margin: 18px 0; }

/* Inline success */
.pi-inline-success {
    display: flex; align-items: center; gap: 8px;
    background: #d1fae5; color: #065f46; border-radius: 10px;
    padding: 12px 16px; font-size: 14px; font-weight: 600; margin-top: 12px;
}

/* WhatsApp */
.pi-whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px; border-radius: 12px;
    background: #25D366; color: #fff !important; font-size: 16px; font-weight: 700;
    text-decoration: none !important; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.pi-whatsapp-btn:hover {
    background: #1ebe5d; transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(37,211,102,0.45);
}
.pi-whatsapp-btn svg { flex-shrink: 0; }

/* ========================================
   Contact Info Cards
   ======================================== */
.pi-contact-info { display: flex; flex-direction: column; gap: 14px; }
.pi-info-group {
    background: #f9fafb; border: 1px solid #f0f0f0;
    border-radius: 12px; padding: 14px 16px;
    transition: border-color 0.2s;
}
.pi-info-group:hover { border-color: #d1d5db; }
.pi-info-title {
    font-size: 14px; font-weight: 700; color: #374151;
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.pi-info-icon { font-size: 16px; }
.pi-info-schedule {
    font-size: 12px; color: #9ca3af; margin-bottom: 6px;
    padding: 2px 10px; background: #f3f4f6; border-radius: 6px; display: inline-block;
}
.pi-info-phones { display: flex; flex-wrap: wrap; gap: 8px; }
.pi-info-phones a {
    display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 600; color: #667eea !important;
    text-decoration: none !important; direction: ltr;
    padding: 4px 12px; background: #667eea10; border-radius: 8px;
    transition: all 0.2s;
}
.pi-info-phones a:hover { background: #667eea20; color: #4f46e5 !important; }
.pi-info-phones a[href^="mailto"] { direction: ltr; }

/* ========================================
   Scrollbar for contact modal
   ======================================== */
.pi-contact-modal::-webkit-scrollbar { width: 6px; }
.pi-contact-modal::-webkit-scrollbar-track { background: transparent; }
.pi-contact-modal::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.pi-contact-modal::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .pi-modal { padding: 24px 20px; border-radius: 16px; }
    .pi-modal-header h3 { font-size: 19px; }
    .pi-inquiry-btn { width: 100%; justify-content: center; padding: 14px 20px; }
    #pi-floating-wrap { bottom: 20px; right: 20px; }
    .pi-floating-btn { width: 54px; height: 54px; }
    .pi-info-phones { flex-direction: column; gap: 4px; }
}
