/* ========================================================
   HAWIAH PLUS — pricing.css | Pricing & Request Quote System
   ======================================================== */

/* ── 1. PRICING SECTION & GRID ───────────────────────────── */
.hw-pricing-section {
  position: relative;
  background: var(--bg, #f5fdf9);
  padding: 100px 0 120px;
  overflow: hidden;
}

[data-theme="dark"] .hw-pricing-section {
  background: #06110a;
}

.hw-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .hw-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .hw-pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── 2. PRICING CARD ─────────────────────────────────────── */
.hw-pcard {
  position: relative;
  background: var(--bg2, #ffffff);
  border: 1px solid var(--ln, rgba(0, 0, 0, 0.08));
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .hw-pcard {
  background: #0d1e15;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hw-pcard:hover {
  transform: translateY(-8px);
  border-color: var(--green, #00d084);
  box-shadow: 0 18px 45px rgba(0, 208, 132, 0.16);
}

.hw-pcard.is-featured {
  border-color: rgba(0, 208, 132, 0.45);
  box-shadow: 0 8px 30px rgba(0, 208, 132, 0.12);
}

/* ── Best Seller Ribbon ──────────────────────────────────── */
.hw-pcard-ribbon {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff9f1c 0%, #f77f00 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(247, 127, 0, 0.35);
  animation: hwPulseRibbon 2.5s infinite;
}

@keyframes hwPulseRibbon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ── Card Media & Image ──────────────────────────────────── */
.hw-pcard-media {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 208, 132, 0.06) 0%, rgba(0, 208, 132, 0.01) 100%);
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ln, rgba(0, 0, 0, 0.05));
  min-height: 180px;
}

[data-theme="dark"] .hw-pcard-media {
  background: rgba(0, 208, 132, 0.03);
}

.hw-pcard-img-wrap {
  width: 100%;
  max-width: 190px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-pcard-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.hw-pcard:hover .hw-pcard-img {
  transform: scale(1.09) rotate(-1deg);
}

.hw-pcard-size-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  background: var(--bg2, #ffffff);
  color: var(--green-d, #00a868);
  border: 1px solid var(--lng, rgba(0, 208, 132, 0.25));
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hw-pcard-size-badge {
  background: #0a1a11;
  color: var(--green-l, #00e896);
}

/* ── Card Body ───────────────────────────────────────────── */
.hw-pcard-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hw-pcard-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #0a1f16);
  line-height: 1.35;
  margin-bottom: 8px;
}

.hw-pcard-desc {
  font-size: 0.84rem;
  color: var(--ink3, #5a7a6e);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 40px;
}

/* ── Price Tag ───────────────────────────────────────────── */
.hw-pcard-price-box {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.08) 0%, rgba(0, 208, 132, 0.02) 100%);
  border: 1px solid rgba(0, 208, 132, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

[data-theme="dark"] .hw-pcard-price-box {
  background: rgba(0, 208, 132, 0.05);
  border-color: rgba(0, 208, 132, 0.22);
}

.hw-price-prefix {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink3, #5a7a6e);
  margin-bottom: 2px;
}

.hw-price-main {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.hw-price-amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green-d, #00a868);
  line-height: 1;
  font-family: 'Outfit', 'Tajawal', sans-serif;
}

[data-theme="dark"] .hw-price-amount {
  color: var(--green-l, #00e896);
}

.hw-price-currency {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-d, #00a868);
}

[data-theme="dark"] .hw-price-currency {
  color: var(--green-l, #00e896);
}

.hw-price-duration {
  font-size: 0.8rem;
  color: var(--ink3, #5a7a6e);
  margin-inline-start: 4px;
}

/* ── Features List ───────────────────────────────────────── */
.hw-pcard-features {
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hw-pcard-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--ink2, #2d4a3e);
  line-height: 1.4;
}

[data-theme="dark"] .hw-pcard-features li {
  color: var(--ink, #e2f4ec);
}

.hw-pcard-features li svg {
  width: 15px;
  height: 15px;
  color: var(--green, #00d084);
  flex-shrink: 0;
}

/* ── Quote Button ────────────────────────────────────────── */
.hw-btn-quote {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--green, #00d084) 0%, var(--green-d, #00a868) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 208, 132, 0.25);
}

.hw-btn-quote svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

[dir="rtl"] .hw-btn-quote svg {
  transform: rotate(180deg);
}

.hw-btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 208, 132, 0.4);
  background: linear-gradient(135deg, #00e896 0%, var(--green-d, #00a868) 100%);
}

.hw-btn-quote:hover svg {
  transform: translateX(-3px);
}

[dir="rtl"] .hw-btn-quote:hover svg {
  transform: rotate(180deg) translateX(-3px);
}

/* ══════════════════════════════════════════════════════════
   3. REQUEST QUOTE MODAL (طلب عرض سعر)
   ══════════════════════════════════════════════════════════ */
.hw-quote-dialog {
  max-width: 660px;
}

/* ── Selected Container Preview Card ─────────────────────── */
.hw-quote-selected-card {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.08) 0%, rgba(0, 208, 132, 0.02) 100%);
  border: 1.5px solid rgba(0, 208, 132, 0.22);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

[data-theme="dark"] .hw-quote-selected-card {
  background: rgba(0, 208, 132, 0.04);
}

.hw-selected-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hw-selected-thumb {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg2, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .hw-selected-thumb {
  background: #0a1810;
  border-color: rgba(255, 255, 255, 0.08);
}

.hw-selected-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hw-selected-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-d, #00a868);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hw-selected-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink, #0a1f16);
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.hw-selected-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink3, #5a7a6e);
}

.hw-meta-size {
  background: rgba(0, 208, 132, 0.14);
  color: var(--green-d, #00a868);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.hw-btn-change-prod {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--ln, rgba(0, 0, 0, 0.12));
  color: var(--ink2, #2d4a3e);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hw-btn-change-prod:hover {
  border-color: var(--green, #00d084);
  color: var(--green-d, #00a868);
  background: rgba(0, 208, 132, 0.06);
}

/* ── Auth Alert / Switch Banner ──────────────────────────── */
.hw-quote-auth-banner {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.09) 0%, rgba(0, 168, 104, 0.04) 100%);
  border: 1px dashed rgba(0, 208, 132, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[data-theme="dark"] .hw-quote-auth-banner {
  background: rgba(0, 208, 132, 0.05);
}

.hw-qauth-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.hw-qauth-text svg {
  color: var(--green, #00d084);
  flex-shrink: 0;
  margin-top: 2px;
}

.hw-qauth-text strong {
  display: block;
  font-size: 0.93rem;
  color: var(--ink, #0a1f16);
  margin-bottom: 2px;
}

.hw-qauth-text p {
  font-size: 0.8rem;
  color: var(--ink3, #5a7a6e);
  margin: 0;
  line-height: 1.45;
}

.hw-qauth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-qbtn-auth-login,
.hw-qbtn-auth-reg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hw-qbtn-auth-login {
  background: var(--bg2, #ffffff);
  color: var(--ink, #0a1f16);
  border: 1px solid var(--ln, rgba(0, 0, 0, 0.12));
}

[data-theme="dark"] .hw-qbtn-auth-login {
  background: #0a1810;
  border-color: rgba(255, 255, 255, 0.12);
}

.hw-qbtn-auth-login:hover {
  border-color: var(--green, #00d084);
  color: var(--green-d, #00a868);
  transform: translateY(-1px);
}

.hw-qbtn-auth-reg {
  background: linear-gradient(135deg, var(--green, #00d084) 0%, var(--green-d, #00a868) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 208, 132, 0.25);
}

.hw-qbtn-auth-reg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 208, 132, 0.38);
}

.hw-quote-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 20px;
  position: relative;
}

.hw-quote-divider::before,
.hw-quote-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--ln, rgba(0, 0, 0, 0.08));
}

.hw-quote-divider span {
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink4, #92aaa1);
  text-transform: uppercase;
}

/* ── Logged-in User Badge in Quote Modal ─────────────────── */
.hw-quote-user-badge {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.1) 0%, rgba(0, 208, 132, 0.03) 100%);
  border: 1px solid rgba(0, 208, 132, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hw-quser-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 208, 132, 0.18);
  color: var(--green-d, #00a868);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hw-quser-details {
  flex: 1;
}

.hw-quser-name {
  font-size: 0.92rem;
  color: var(--ink, #0a1f16);
  margin-bottom: 2px;
}

.hw-quser-phone {
  font-size: 0.8rem;
  color: var(--ink3, #5a7a6e);
  direction: ltr;
  display: inline-block;
}

.hw-quser-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 208, 132, 0.15);
  color: var(--green-d, #00a868);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Quantity Input With Stepper ─────────────────────────── */
.hw-qty-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ln, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2, #ffffff);
}

[data-theme="dark"] .hw-qty-input-wrap {
  background: #0a1810;
  border-color: rgba(255, 255, 255, 0.12);
}

.hw-qty-btn {
  width: 44px;
  height: 44px;
  background: rgba(0, 208, 132, 0.08);
  color: var(--ink, #0a1f16);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hw-qty-btn:hover {
  background: var(--green, #00d084);
  color: #ffffff;
}

.hw-qty-input {
  border: none !important;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100%;
}

/* ── Client Type Pill Radios ─────────────────────────────── */
.hw-client-type-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hw-type-radio-label {
  cursor: pointer;
}

.hw-type-radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hw-type-radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg2, #ffffff);
  border: 1.5px solid var(--ln, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink2, #2d4a3e);
  transition: all 0.2s ease;
}

[data-theme="dark"] .hw-type-radio-pill {
  background: #0a1810;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink, #e2f4ec);
}

.hw-type-radio-label input:checked + .hw-type-radio-pill {
  background: rgba(0, 208, 132, 0.12);
  border-color: var(--green, #00d084);
  color: var(--green-d, #00a868);
}

[data-theme="dark"] .hw-type-radio-label input:checked + .hw-type-radio-pill {
  color: var(--green-l, #00e896);
}

/* ── Guest Contact Section ───────────────────────────────── */
.hw-guest-contact-section {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--ln, rgba(0, 0, 0, 0.07));
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 18px;
}

[data-theme="dark"] .hw-guest-contact-section {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}

.hw-guest-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #0a1f16);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ln, rgba(0, 0, 0, 0.06));
}

.hw-guest-head svg {
  color: var(--green, #00d084);
}

/* ── Instant Account Creation Toggle ─────────────────────── */
.hw-create-acc-box {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.08) 0%, rgba(0, 208, 132, 0.02) 100%);
  border: 1px solid rgba(0, 208, 132, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

[data-theme="dark"] .hw-create-acc-box {
  background: rgba(0, 208, 132, 0.04);
}

.hw-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.hw-toggle-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hw-toggle-switch {
  width: 44px;
  height: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.hw-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hw-toggle-label input:checked + .hw-toggle-switch {
  background: var(--green, #00d084);
}

.hw-toggle-label input:checked + .hw-toggle-switch::after {
  transform: translateX(20px);
}

[dir="rtl"] .hw-toggle-label input:checked + .hw-toggle-switch::after {
  transform: translateX(-20px);
}

.hw-toggle-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink, #0a1f16);
  margin-bottom: 2px;
}

.hw-toggle-text small {
  display: block;
  font-size: 0.77rem;
  color: var(--ink3, #5a7a6e);
}

.hw-quote-pwd-input-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 208, 132, 0.15);
  transition: all 0.3s ease;
}

/* ── Submit Button & Spin ─────────────────────────────────── */
.hw-quote-submit-wrap {
  margin-top: 24px;
}

.hw-btn-submit-quote {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--green, #00d084) 0%, var(--green-d, #00a868) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 208, 132, 0.3);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.hw-btn-submit-quote:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 208, 132, 0.45);
  background: linear-gradient(135deg, #00e896 0%, var(--green-d, #00a868) 100%);
}

.hw-btn-submit-quote:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.hw-spin {
  animation: hwSpin 0.9s linear infinite;
  width: 20px;
  height: 20px;
}

@keyframes hwSpin {
  100% { transform: rotate(360deg); }
}

/* ── Success State Box ───────────────────────────────────── */
.hw-quote-success-state {
  text-align: center;
  padding: 40px 20px;
}

.hw-success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.2) 0%, rgba(0, 168, 104, 0.1) 100%);
  color: var(--green, #00d084);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(0, 208, 132, 0.3);
  animation: hwPopSuccess 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hwPopSuccess {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hw-success-icon-wrap svg {
  width: 38px;
  height: 38px;
}

.hw-success-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink, #0a1f16);
  margin-bottom: 8px;
}

.hw-success-desc {
  font-size: 0.95rem;
  color: var(--ink3, #5a7a6e);
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.hw-quote-acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 208, 132, 0.15);
  color: var(--green-d, #00a868);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 100px;
  margin-top: 10px;
}
