/* Hizmet sayfası satın alma bloğu — webmivo teması */
.hizmet-purchase {
  --hp-o: #E8740C; --hp-o-h: #d06508; --hp-d: #1a1a2e; --hp-t: #374151;
  --hp-tl: #6B7280; --hp-bg: #F9FAFB; --hp-bd: #E5E7EB;
  margin: 48px 0; padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #FFFBF5 100%);
  border: 1px solid var(--hp-bd); border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.hizmet-purchase-head { text-align: center; margin-bottom: 24px; }

.hizmet-purchase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 9999px;
  background: rgba(232, 116, 12, 0.1); color: var(--hp-o);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 12px;
}

.hizmet-purchase-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800; color: var(--hp-d);
  letter-spacing: -.02em; margin: 0 0 10px;
  line-height: 1.25;
}

.hizmet-purchase-sub {
  font-size: .98rem; color: var(--hp-tl);
  max-width: 560px; margin: 0 auto 16px;
  line-height: 1.6;
}
.hizmet-purchase-sub p { margin: 0 0 8px; }
.hizmet-purchase-sub p:last-child { margin-bottom: 0; }

.hizmet-purchase-price {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 12px 22px; margin-top: 8px;
  background: #fff; border: 1.5px solid rgba(232, 116, 12, 0.25);
  border-radius: 12px;
}
.hizmet-purchase-price .woocommerce-Price-amount {
  font-size: 1.6rem; font-weight: 800; color: var(--hp-d);
}
.hizmet-purchase-price del { color: var(--hp-tl); font-size: 1rem; opacity: .7; }
.hizmet-purchase-price ins { background: transparent; text-decoration: none; }

/* Form container */
.hizmet-purchase-form {
  max-width: 720px; margin: 0 auto;
  padding: 24px;
  background: #fff; border: 1px solid var(--hp-bd);
  border-radius: 14px;
}

.hizmet-purchase-form form.cart {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px; margin: 0;
}

.hizmet-purchase-form form.cart .quantity {
  display: inline-flex; align-items: center;
  background: #fff; border: 1.5px solid var(--hp-bd);
  border-radius: 10px; overflow: hidden;
}
.hizmet-purchase-form form.cart .quantity input.qty {
  width: 64px !important; height: 48px; border: 0 !important;
  text-align: center; font-size: 1rem; font-weight: 600;
  background: transparent;
}
.hizmet-purchase-form form.cart .quantity input.qty:focus {
  outline: none; box-shadow: none;
}

.hizmet-purchase-form .single_add_to_cart_button,
.hizmet-purchase-form .wmv-buy-now {
  flex: 1 1 auto; min-width: 180px;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .12s, box-shadow .15s;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.hizmet-purchase-form .single_add_to_cart_button {
  background: var(--hp-o); color: #fff !important; border-color: var(--hp-o);
}
.hizmet-purchase-form .single_add_to_cart_button:hover {
  background: var(--hp-o-h); border-color: var(--hp-o-h);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 116, 12, 0.28);
}
.hizmet-purchase-form .wmv-buy-now {
  background: var(--hp-d); color: #fff !important; border-color: var(--hp-d);
}
.hizmet-purchase-form .wmv-buy-now:hover {
  background: #000; border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 26, 46, 0.28);
  color: #fff !important;
}

/* Wizard tema override */
.hizmet-purchase-form .wcdpf-wizard {
  margin: 0 0 16px !important;
  padding: 20px !important;
  background: var(--hp-bg) !important;
  border: 1px solid var(--hp-bd) !important;
  border-radius: 12px !important;
  width: 100%;
}
.hizmet-purchase-form .wcdpf-progress-bar {
  background: linear-gradient(90deg, var(--hp-o), #F59E0B) !important;
}
.hizmet-purchase-form .wcdpf-wizard input:focus,
.hizmet-purchase-form .wcdpf-wizard textarea:focus,
.hizmet-purchase-form .wcdpf-wizard select:focus {
  border-color: var(--hp-o) !important;
  box-shadow: 0 0 0 3px rgba(232, 116, 12, 0.15) !important;
}
.hizmet-purchase-form .wcdpf-opt:hover { border-color: var(--hp-o) !important; }
.hizmet-purchase-form .wcdpf-addon-summary {
  background: #FFF7EC !important;
  border-left-color: var(--hp-o) !important;
  color: #7c2d12 !important;
}
.hizmet-purchase-form .wcdpf-opt-price-label { color: var(--hp-o) !important; }

/* Trust list */
.hizmet-purchase-trust {
  list-style: none; padding: 0; margin: 24px auto 0;
  max-width: 720px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hizmet-purchase-trust li {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--hp-bd);
  border-radius: 10px;
  font-size: .82rem; color: var(--hp-t); font-weight: 500;
  text-align: center;
}

/* Modal Styles */
.wmv-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.wmv-modal.is-active { display: flex; }

.wmv-modal-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; animation: wmvFadeIn .3s ease forwards;
}

.wmv-modal-container {
  position: relative; width: 100%; max-width: 840px; max-height: 90vh;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  z-index: 2; animation: wmvScaleIn .35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex; flex-direction: column;
}

.wmv-modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; border: 1px solid var(--hp-bd);
  color: var(--hp-d); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; z-index: 10;
}
.wmv-modal-close:hover {
  background: var(--hp-o); color: #fff; border-color: var(--hp-o);
  transform: rotate(90deg);
}

.wmv-modal-content {
  overflow-y: auto; padding: 20px; scrollbar-width: thin;
  scrollbar-color: var(--hp-o) transparent;
}
.wmv-modal-content::-webkit-scrollbar { width: 6px; }
.wmv-modal-content::-webkit-scrollbar-thumb { background: var(--hp-o); border-radius: 10px; }

/* In-modal adjustments for purchase block */
.wmv-modal-content .hizmet-purchase {
  margin: 0; border: none; box-shadow: none; background: transparent; padding: 10px 0;
}
.wmv-modal-content .hizmet-purchase-form { border-color: rgba(232, 116, 12, 0.15); }

/* Animations */
@keyframes wmvFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wmvScaleIn { 
  from { opacity: 0; transform: scale(0.95) translateY(15px); } 
  to { opacity: 1; transform: scale(1) translateY(0); } 
}

/* Scroll Lock */
body.modal-open { overflow: hidden; padding-right: 0px; }

@media (max-width: 768px) {
  .wmv-modal { padding: 10px; }
  .wmv-modal-container { border-radius: 16px; max-height: 95vh; }
  .wmv-modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .wmv-modal-content { padding: 15px; }
}
