/* =========================================================
   Webmivo — Hizmet Checkout Modal v2
   Tema: Webmivo (orange / dark)
   ========================================================= */
:root {
  --wmv-o: #E8740C;
  --wmv-o-h: #d06508;
  --wmv-o-soft: #FFF1E0;
  --wmv-d: #1a1a2e;
  --wmv-d2: #24243e;
  --wmv-t: #374151;
  --wmv-tl: #6B7280;
  --wmv-bg: #F9FAFB;
  --wmv-bd: #E5E7EB;
  --wmv-ok: #16A34A;
  --wmv-err: #DC2626;
  --wmv-shadow: 0 25px 60px -15px rgba(26, 26, 46, .35), 0 10px 25px -10px rgba(26, 26, 46, .15);
}

/* ---------- Overlay ---------- */
.wmv-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100000;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s;
}
.wmv-modal.active { visibility: visible; opacity: 1; }
.wmv-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 26, 46, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.wmv-modal-open { overflow: hidden; }

/* ---------- Dialog ---------- */
.wmv-modal-container {
  position: relative;
  width: 100%; max-width: 720px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--wmv-shadow);
  display: flex; flex-direction: column;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
  overflow: hidden;
}
.wmv-modal.active .wmv-modal-container { transform: translateY(0) scale(1); opacity: 1; }

/* ---------- Header ---------- */
.wmv-modal-header {
  position: relative;
  padding: 24px 62px 20px 26px;
  background: linear-gradient(135deg, var(--wmv-d) 0%, var(--wmv-d2) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.wmv-modal-header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70px;
  background: radial-gradient(80% 100% at 20% 100%, rgba(232,116,12,.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.wmv-modal-header > * { position: relative; z-index: 1; }
.wmv-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--wmv-o); margin-bottom: 6px;
}
.wmv-modal-header h2 {
  margin: 0; font-size: 1.22rem; font-weight: 800; color: #fff;
  line-height: 1.3; letter-spacing: -.01em;
}
.wmv-modal-header .wmv-hizmet-title {
  display: block; margin-top: 4px;
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.7);
}
.wmv-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .25s;
  font-size: 0; /* hides legacy "×" text */
}
.wmv-modal-close::before {
  content: ""; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 6L6 18M6 6l12 12' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 6L6 18M6 6l12 12' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>") center/contain no-repeat;
}
.wmv-modal-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }

/* ---------- Stepper ---------- */
.wmv-stepper {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 18px; flex-wrap: wrap;
}
.wmv-stepper-item { display: flex; align-items: center; flex: 0 0 auto; }
.wmv-stepper-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: default; border: 0; padding: 0;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.wmv-stepper-item.is-active .wmv-stepper-dot {
  background: var(--wmv-o); color: #fff; transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(232, 116, 12, .25);
}
.wmv-stepper-item.is-done .wmv-stepper-dot {
  background: var(--wmv-ok); color: #fff;
}
.wmv-stepper-item.is-done .wmv-stepper-dot::before {
  content: "✓"; font-size: 1rem; font-weight: 700;
}
.wmv-stepper-item.is-done .wmv-stepper-num { display: none; }
.wmv-stepper-line {
  width: 32px; height: 2px; background: rgba(255, 255, 255, .15);
  margin: 0 4px; transition: background .3s;
}
.wmv-stepper-item.is-done + .wmv-stepper-line { background: var(--wmv-ok); }

/* ---------- Progress bar ---------- */
.wmv-progress {
  height: 3px; background: rgba(0, 0, 0, .06); position: relative;
}
.wmv-progress-bar {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--wmv-o), #F59E0B);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Body ---------- */
.wmv-modal-body {
  padding: 26px; overflow-y: auto; flex: 1 1 auto;
  scrollbar-width: thin; scrollbar-color: var(--wmv-bd) transparent;
  background: #fff;
}
.wmv-modal-body::-webkit-scrollbar { width: 8px; }
.wmv-modal-body::-webkit-scrollbar-thumb { background: var(--wmv-bd); border-radius: 8px; }

/* ---------- Step transitions ---------- */
.wmv-wizard-step,
.wmv-contact-form,
.wmv-review,
.wmv-success {
  animation: wmvStepIn .4s cubic-bezier(.22, 1, .36, 1);
}
@keyframes wmvStepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Step head ---------- */
.wmv-wizard-step h3,
.wmv-contact-form h3,
.wmv-review h3 {
  margin: 0 0 6px; font-size: 1.12rem; font-weight: 700;
  color: var(--wmv-d); letter-spacing: -.01em;
}
.wmv-step-desc,
.wmv-contact-form .wmv-section-desc {
  margin: 0 0 20px; color: var(--wmv-tl);
  font-size: .94rem; line-height: 1.55;
}

/* ---------- Fields ---------- */
.wcdpf-field { margin-bottom: 18px; }
.wcdpf-field-label {
  display: block; margin-bottom: 10px; font-weight: 600;
  color: var(--wmv-d); font-size: .94rem;
}
.wcdpf-req-mark { color: var(--wmv-err); margin-left: 2px; }

.wmv-modal input[type=text],
.wmv-modal input[type=email],
.wmv-modal input[type=tel],
.wmv-modal input[type=url],
.wmv-modal input[type=number],
.wmv-modal input[type=date],
.wmv-modal textarea,
.wmv-modal select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  color: var(--wmv-t); background: #fff;
  border: 1.5px solid var(--wmv-bd);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.wmv-modal input::placeholder,
.wmv-modal textarea::placeholder { color: #9CA3AF; }
.wmv-modal input:focus,
.wmv-modal textarea:focus,
.wmv-modal select:focus {
  outline: none;
  border-color: var(--wmv-o);
  box-shadow: 0 0 0 4px rgba(232, 116, 12, .15);
  background: #FFFCF8;
}
.wmv-modal textarea { resize: vertical; min-height: 90px; }

/* ---------- Options (radio/checkbox) — card style ---------- */
.wcdpf-radios, .wcdpf-checks {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 520px) {
  .wcdpf-radios, .wcdpf-checks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
.wcdpf-opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 14px;
  border: 1.5px solid var(--wmv-bd);
  border-radius: 12px; background: #fff;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.wcdpf-opt:hover {
  border-color: var(--wmv-o);
  background: var(--wmv-o-soft);
}
.wcdpf-opt:active { transform: scale(.985); }
.wcdpf-opt input {
  accent-color: var(--wmv-o);
  margin: 0; flex: none;
  width: 18px; height: 18px;
}
.wcdpf-opt:has(input:checked) {
  border-color: var(--wmv-o);
  background: var(--wmv-o-soft);
  box-shadow: 0 0 0 3px rgba(232, 116, 12, .12) inset;
}
.wcdpf-opt span {
  font-size: .93rem; color: var(--wmv-d); line-height: 1.4; flex: 1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.wcdpf-opt-price-label {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; font-style: normal;
  background: var(--wmv-o); color: #fff;
  white-space: nowrap;
}

/* ---------- Addon summary inside body ---------- */
.wmv-addon-summary {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--wmv-o-soft);
  border: 1px solid rgba(232,116,12,.22);
  border-left: 3px solid var(--wmv-o);
  border-radius: 12px;
  color: var(--wmv-d);
  font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  animation: wmvStepIn .3s ease;
}
.wmv-addon-summary .val { color: var(--wmv-o); font-weight: 800; font-size: 1rem; }

/* ---------- Contact form grid ---------- */
.wmv-contact-form .wmv-input-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 520px) {
  .wmv-contact-form .wmv-input-grid { grid-template-columns: 1fr 1fr; }
  .wmv-contact-form .wmv-group.full { grid-column: 1 / -1; }
}
.wmv-contact-form .wmv-group label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--wmv-d); margin-bottom: 7px;
}

/* ---------- Review step ---------- */
.wmv-review-list {
  list-style: none; padding: 0; margin: 0 0 14px;
  border: 1px solid var(--wmv-bd); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.wmv-review-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--wmv-bd);
  font-size: .93rem;
}
.wmv-review-list li:last-child { border-bottom: 0; }
.wmv-review-list .lbl { color: var(--wmv-tl); font-weight: 500; }
.wmv-review-list .val { color: var(--wmv-d); font-weight: 700; text-align: right; }
.wmv-review-list .val .price { color: var(--wmv-o); font-size: .82rem; margin-left: 6px; }
.wmv-review-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--wmv-d) 0%, var(--wmv-d2) 100%);
  color: #fff; border-radius: 12px;
}
.wmv-review-total .lbl { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.wmv-review-total .amt { font-size: 1.35rem; font-weight: 800; color: var(--wmv-o); }

/* ---------- Footer ---------- */
.wmv-modal-footer {
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--wmv-bd);
  display: flex; flex-direction: column; gap: 12px;
}
.wmv-footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.wmv-total-display {
  display: flex; align-items: baseline; gap: 6px;
  color: var(--wmv-tl); font-size: .88rem;
}
.wmv-total-display .lbl { font-weight: 600; color: var(--wmv-tl); }
.wmv-total-amount {
  font-size: 1.45rem; font-weight: 800; color: var(--wmv-d);
  letter-spacing: -.01em;
}
.wmv-total-currency { font-size: 1rem; font-weight: 700; color: var(--wmv-d); }

.wmv-actions { display: flex; gap: 10px; }
.wmv-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-width: 120px;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.wmv-btn-ghost {
  background: transparent; color: var(--wmv-tl);
  border: 1.5px solid var(--wmv-bd);
}
.wmv-btn-ghost:hover { background: var(--wmv-bg); color: var(--wmv-d); border-color: var(--wmv-tl); }
.wmv-btn-primary {
  background: var(--wmv-o); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(232, 116, 12, .6);
}
.wmv-btn-primary:hover:not(:disabled) { background: var(--wmv-o-h); transform: translateY(-1px); color: #fff; }
.wmv-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.wmv-btn-submit { background: var(--wmv-ok); box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .6); }
.wmv-btn-submit:hover:not(:disabled) { background: #128442; }

/* Legacy .wt-btn inside modal (compat) */
.wmv-modal .wt-btn { min-width: 120px; padding: 12px 22px; border-radius: 10px; }

/* Trust bar */
.wmv-trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  padding: 12px 18px;
  background: var(--wmv-bg);
  border-top: 1px solid var(--wmv-bd);
  color: var(--wmv-tl); font-size: .8rem;
}
.wmv-trust-bar span { display: inline-flex; align-items: center; gap: 6px; }
.wmv-trust-bar .ico { color: var(--wmv-o); }

/* ---------- Error states ---------- */
.wcdpf-field.is-error input,
.wcdpf-field.is-error textarea,
.wcdpf-field.is-error select,
.wcdpf-field.is-error .wcdpf-radios,
.wcdpf-field.is-error .wcdpf-checks,
.wmv-group.is-error input,
.wmv-group.is-error textarea {
  border-color: var(--wmv-err) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.wcdpf-field.is-error,
.wmv-group.is-error { animation: wmvShake .35s ease; }
.wmv-field-error {
  display: block; margin-top: 6px;
  color: var(--wmv-err); font-size: .82rem; font-weight: 500;
}
@keyframes wmvShake {
  0%, 100% { transform: none; }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.wcdpf-hidden,
[hidden] { display: none !important; }

/* ---------- Success ---------- */
.wmv-success {
  text-align: center; padding: 20px 10px 10px;
}
.wmv-success-icon {
  width: 86px; height: 86px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399 0%, var(--wmv-ok) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 15px 30px -10px rgba(22, 163, 74, .55);
  animation: wmvPop .55s cubic-bezier(.22, 1, .36, 1);
}
.wmv-success-icon svg { width: 42px; height: 42px; }
@keyframes wmvPop {
  0% { transform: scale(.2); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
.wmv-success h3 {
  margin: 0 0 8px; font-size: 1.3rem; color: var(--wmv-d); font-weight: 800;
}
.wmv-success p { color: var(--wmv-tl); font-size: .95rem; margin: 0 0 6px; }
.wmv-success .wmv-order-id {
  display: inline-block; margin: 10px 0 18px;
  padding: 8px 16px; background: var(--wmv-o-soft);
  border: 1px solid rgba(232,116,12,.25); border-radius: 10px;
  color: var(--wmv-d); font-weight: 700; letter-spacing: .02em;
}
.wmv-success .wmv-order-id strong { color: var(--wmv-o); }

/* ---------- Spinner ---------- */
.wmv-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wmvSpin .7s linear infinite;
}
@keyframes wmvSpin { to { transform: rotate(360deg); } }

/* ---------- Help text ---------- */
.wmv-help-text {
  display: block; margin-top: 6px; color: var(--wmv-tl);
  font-size: .82rem; line-height: 1.45;
}

/* ---------- Responsive (mobile bottom-sheet) ---------- */
@media (max-width: 560px) {
  .wmv-modal { padding: 0; align-items: flex-end; }
  .wmv-modal-container {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  .wmv-modal.active .wmv-modal-container { transform: translateY(0); }
  .wmv-modal-header { padding: 20px 54px 16px 20px; }
  .wmv-modal-body { padding: 20px; }
  .wmv-modal-footer { padding: 14px 18px; }
  .wmv-stepper-line { width: 20px; }
  .wmv-stepper-dot { width: 26px; height: 26px; font-size: .72rem; }
  .wmv-footer-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .wmv-actions { width: 100%; }
  .wmv-actions .wmv-btn { flex: 1; min-width: 0; }
  .wmv-total-display { justify-content: space-between; }
  .wmv-trust-bar { font-size: .74rem; gap: 6px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wmv-modal,
  .wmv-modal-container,
  .wmv-wizard-step,
  .wmv-contact-form,
  .wmv-review,
  .wmv-success,
  .wmv-progress-bar,
  .wmv-modal-close,
  .wcdpf-opt,
  .wcdpf-field,
  .wmv-btn { transition: none !important; animation: none !important; }
}

/* ===== Package Selection Step ===== */
.wmv-package-step .wmv-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.wmv-pkg-card {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 20px 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  display: flex;
  flex-direction: column;
}
.wmv-pkg-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(99,102,241,.12);
  transform: translateY(-2px);
}
.wmv-pkg-card.is-selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.18), 0 6px 20px rgba(99,102,241,.18);
  background: #f5f7ff;
}
.wmv-pkg-card.is-popular {
  border-color: #f59e0b;
}
.wmv-pkg-card.is-popular.is-selected {
  border-color: #6366f1;
}
.wmv-pkg-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg,#f59e0b,#f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
}
.wmv-pkg-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.wmv-pkg-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}
.wmv-pkg-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e5e7eb;
}
.wmv-pkg-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}
.wmv-pkg-now {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}
.wmv-pkg-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}
.wmv-pkg-features li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.5;
}
.wmv-pkg-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wmv-pkg-select {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  transition: background .18s ease, color .18s ease;
}
.wmv-pkg-card.is-selected .wmv-pkg-select {
  background: #6366f1;
  color: #fff;
}
@media (max-width: 600px) {
  .wmv-package-step .wmv-pkg-grid { grid-template-columns: 1fr; }
}
