/* FP RFQ - طلب عرض سعر */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

.fp-rfq-wrap { margin: 15px 0; }

.fp-rfq-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a1a2e; color: #fff;
  border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 8px;
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 16px; font-weight: 700;
  transition: all .2s ease;
  direction: rtl;
}
.fp-rfq-btn svg { width: 20px; height: 20px; }
.fp-rfq-btn:hover { background: #2d2d5e; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(26,26,46,.3); }

/* Overlay */
.fp-rfq-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 99999;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  font-family: 'Cairo', Tahoma, sans-serif;
}
.fp-rfq-overlay.active { display: flex; }

/* Modal */
.fp-rfq-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 680px; max-height: 90vh;
  overflow-y: auto; padding: 35px;
  position: relative; direction: rtl;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  animation: fpSlideUp .3s ease;
}
@keyframes fpSlideUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }

.fp-rfq-close {
  position: absolute; top: 15px; left: 15px;
  background: #f0f0f0; border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; color: #555; display: flex;
  align-items: center; justify-content: center;
  transition: all .2s;
}
.fp-rfq-close:hover { background: #e0e0e0; }

/* Header */
.fp-rfq-header {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 25px; padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}
.fp-rfq-logo {
  width: 56px; height: 56px; background: #1a1a2e;
  color: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; flex-shrink: 0;
}
.fp-rfq-header h2 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.fp-rfq-product-name { font-size: 13px; color: #888; margin: 0; }

/* Section title */
.fp-rfq-section-title {
  font-size: 12px; font-weight: 700; color: #1a1a2e;
  border-right: 3px solid #1a1a2e; padding-right: 10px;
  margin: 20px 0 12px; letter-spacing: .5px;
}

/* Grid */
.fp-rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Fields */
.fp-rfq-field { display: flex; flex-direction: column; gap: 5px; }
.fp-rfq-full { grid-column: 1 / -1; }
.fp-rfq-field label { font-size: 12px; font-weight: 600; color: #555; }
.fp-rfq-field label span { color: #e74c3c; }
.fp-rfq-field input, .fp-rfq-field textarea, .fp-rfq-field select {
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  padding: 10px 14px; font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 14px; color: #1a1a2e; direction: rtl;
  transition: border-color .2s; outline: none;
  background: #fafafa;
}
.fp-rfq-field input:focus, .fp-rfq-field textarea:focus {
  border-color: #1a1a2e; background: #fff;
}
.fp-rfq-field textarea { resize: vertical; }

/* Submit */
.fp-rfq-actions { margin-top: 25px; }
.fp-rfq-submit {
  width: 100%; padding: 14px;
  background: #1a1a2e; color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 16px; font-weight: 700;
  transition: all .2s;
}
.fp-rfq-submit:hover { background: #2d2d5e; }
.fp-rfq-submit:disabled { opacity: .7; cursor: not-allowed; }

/* Success */
.fp-rfq-success { text-align: center; padding: 30px 0; }
.fp-rfq-success-icon {
  width: 64px; height: 64px; background: #27ae60;
  color: #fff; border-radius: 50%; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px; font-weight: 700;
}
.fp-rfq-success h3 { font-size: 20px; color: #1a1a2e; margin-bottom: 8px; }
.fp-rfq-success p { color: #888; font-size: 14px; margin-bottom: 20px; }
.fp-rfq-success-btns { display: flex; gap: 12px; justify-content: center; }
.fp-rfq-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; padding: 12px 24px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.fp-rfq-wa-btn svg { width: 18px; height: 18px; }
.fp-rfq-close-btn {
  padding: 12px 24px; border: 2px solid #e0e0e0;
  background: #fff; border-radius: 8px; cursor: pointer;
  font-family: 'Cairo', Tahoma, sans-serif; font-size: 14px; font-weight: 600;
}

/* Error */
.fp-rfq-error { background: #fef0f0; border: 1px solid #f5c6cb;
  border-radius: 8px; padding: 12px; margin-top: 15px; text-align: center; color: #e74c3c; }

/* Mobile */
@media (max-width: 600px) {
  .fp-rfq-modal { padding: 20px; }
  .fp-rfq-grid { grid-template-columns: 1fr; }
}
