/* ============================================================
   PREMIUM OFFER MODAL CSS — Anlaşmalı Hastaneler
   Adburbs Digital Agency — 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Kalam:wght@700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Modal Overlay Backdrop ── */
.ah-offer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}

.ah-offer-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Dialog Window ── */
.ah-offer-modal-dialog {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  padding: var(--sp-8);
  transform: scale(0.92) translateY(12px);
  transition: transform var(--dur-slow) var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray-300) transparent;
}

/* Creative Variant (Mockup Style) */
.ah-offer-modal-dialog--creative {
  max-width: 680px;
  background: radial-gradient(circle at 85% 15%, rgba(186, 230, 253, 0.5), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(187, 247, 208, 0.45), transparent 45%),
              linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 45%, #f0fdf4 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(14, 116, 144, 0.22),
              0 0 0 1px rgba(186, 230, 253, 0.5);
  padding: 30px 34px 24px;
}

.ah-offer-modal-overlay.is-open .ah-offer-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Dialog */
.ah-offer-modal-dialog::-webkit-scrollbar {
  width: 5px;
}
.ah-offer-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}
.ah-offer-modal-dialog::-webkit-scrollbar-thumb {
  background: var(--c-gray-300);
  border-radius: 10px;
}
.ah-offer-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--c-gray-400);
}

/* ── Close Button ── */
.ah-offer-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--c-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-offer-modal-close:hover {
  background: var(--c-error);
  border-color: var(--c-error);
  color: var(--c-white);
  transform: rotate(90deg) scale(1.05);
}

.ah-offer-modal-close svg {
  width: 18px;
  height: 18px;
}

/* ── Top Eyebrow Badge ── */
.ah-offer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 242, 254, 0.85);
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ah-eyebrow-shield {
  color: #0284c7;
  flex-shrink: 0;
}

/* ── Header Stack ── */
.ah-offer-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ah-offer-header-left {
  flex: 1;
}

.ah-modal-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

/* Line 1: Sağlık Sigortanız yoksa */
.ah-title-dark {
  font-family: 'Kalam', 'Caveat', cursive, sans-serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: #1e295f;
  line-height: 1.15;
  letter-spacing: -0.01em;
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* Line 2 & 3: sizin için iyi bir teklifimiz var! */
.ah-title-highlight-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  transform: rotate(-0.5deg);
}

.ah-title-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ah-line-mid,
.ah-line-bot {
  font-family: 'Kalam', 'Caveat', cursive, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #028090;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.ah-line-bot {
  position: relative;
  display: inline-block;
}

/* Yellow Brush Underline */
.ah-brush-underline {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

/* Sunburst Doodle Rays */
.ah-sunburst {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  animation: sunburstPulse 2.5s ease-in-out infinite alternate;
}

@keyframes sunburstPulse {
  0% { transform: scale(0.92) rotate(-3deg); opacity: 0.85; }
  100% { transform: scale(1.08) rotate(3deg); opacity: 1; }
}

/* Subtitle */
.ah-modal-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 500;
  max-width: 540px;
}

.ah-subtitle-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(2, 132, 199, 0.4);
  text-underline-offset: 2px;
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-subtitle-link:hover {
  color: #0369a1;
  text-decoration-color: #0369a1;
}

/* ── Top Right Doctor Stamp Badge (Desktop) ── */
.ah-offer-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  padding-top: 2px;
  margin-left: 10px;
}

.ah-stamp-icon-box {
  width: 80px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ah-heart-pulse-icon {
  width: 78px;
  height: 70px;
}

.ah-stamp-text {
  font-family: 'Kalam', 'Caveat', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.15;
  margin-top: 4px;
}

.ah-stamp-underline {
  width: 52px;
  height: 8px;
  margin-top: 2px;
}

/* ── Inner White Form Card ── */
.ah-offer-white-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08),
              0 4px 6px -2px rgba(15, 23, 42, 0.03);
  padding: 22px 24px 18px;
}

/* Form Fields inside Card */
.ah-offer-white-card .form-field {
  margin-bottom: 12px;
}

.ah-offer-white-card .form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.ah-offer-white-card .form-label svg {
  color: #0284c7;
}

.ah-offer-white-card .form-input {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-offer-white-card .form-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* Grid Layouts */
.ah-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint-inline {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: normal;
  margin-left: 4px;
}

/* ── Phone input & verify button ── */
.ah-phone-input-wrapper {
  display: flex;
  gap: 8px;
}

.ah-phone-input-wrapper .form-input {
  flex: 1;
}

.ah-phone-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  background: var(--c-accent-50);
  border: 1.5px solid rgba(var(--c-accent-rgb), 0.2);
  border-radius: 10px;
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-phone-verify-btn:hover:not(:disabled) {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.ah-phone-verify-btn:disabled {
  background: var(--c-gray-100);
  border-color: var(--c-gray-200);
  color: var(--c-gray-400);
  cursor: not-allowed;
}

/* OTP verification code container */
.ah-modal-otp-sect {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  animation: slideDown var(--dur-base) var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Switches & Consent ── */
.ah-consent-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.ah-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.ah-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ah-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ah-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.ah-switch-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ah-switch-input:checked + .ah-switch-slider {
  background-color: #10b981;
}

.ah-switch-input:checked + .ah-switch-slider:before {
  transform: translateX(14px);
}

.ah-consent-text {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

.ah-consent-text a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
}

.ah-consent-text a:hover {
  color: #0369a1;
}

/* ── KVKK Trust Notice Box ── */
.ah-offer-kvkk-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.ah-kvkk-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ah-kvkk-shield-icon {
  color: #16a34a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ah-kvkk-info {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  line-height: 1.25;
}

.ah-kvkk-info strong {
  color: #15803d;
  font-weight: 700;
}

.ah-kvkk-info span {
  color: #166534;
}

.ah-kvkk-right-stamp {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 700;
  border-left: 1px dashed #86efac;
  padding-left: 10px;
  line-height: 1.15;
  flex-shrink: 0;
}

/* ── Turnstile Container ── */
.ah-turnstile-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

/* ── Submit Button Wrap with Burst Rays ── */
.ah-submit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.ah-submit-burst {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: sunburstPulse 2s ease-in-out infinite alternate;
}

.ah-btn-creative {
  flex: 1;
  max-width: 280px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-btn-creative:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
}

/* Spinner inside Submit Button */
.ah-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: ah-spin 0.8s linear infinite;
}

.ah-btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.ah-btn-creative:hover .ah-btn-arrow {
  transform: translateX(3px);
}

@keyframes ah-spin {
  to { transform: rotate(360deg); }
}

/* ── Teklif Almadan Devam Et Butonu ── */
.ah-modal-skip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.ah-modal-skip-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

.ah-modal-skip-btn svg {
  color: #94a3b8;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.ah-modal-skip-btn:hover svg {
  color: #0f172a;
  transform: translateX(3px);
}

/* ── Bottom Footnote & Brand Badge ── */
.ah-offer-bottom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.ah-bottom-arrow-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #475569;
}

.ah-doodle-arrow {
  width: 28px;
  height: 18px;
  color: #0284c7;
  flex-shrink: 0;
}

.ah-bottom-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ah-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

.ah-brand-link:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
}

.ah-pill-burst {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Responsive adjustments (Single-Screen Mobile Fit) ── */
@media (max-width: 768px) {
  .ah-offer-modal-overlay {
    padding: 8px;
  }

  .ah-offer-modal-dialog--creative {
    max-width: 100%;
    max-height: 98vh;
    padding: 14px 12px 10px;
    border-radius: 20px;
  }
  
  .ah-offer-modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .ah-offer-modal-close svg {
    width: 15px;
    height: 15px;
  }

  /* Hide heart stamp on mobile completely as marked with X */
  .ah-offer-stamp {
    display: none !important;
  }

  .ah-offer-step-header {
    margin-bottom: 8px;
  }

  .ah-offer-eyebrow {
    font-size: 0.68rem;
    padding: 2px 8px;
    margin-bottom: 4px;
    gap: 4px;
  }

  .ah-eyebrow-shield {
    width: 13px;
    height: 13px;
  }
  
  .ah-modal-title {
    margin-bottom: 2px;
    gap: 0;
  }

  .ah-title-dark {
    font-size: 1.25rem;
    line-height: 1.15;
  }
  
  .ah-title-highlight-wrap {
    gap: 6px;
    margin-top: 0;
  }

  .ah-line-mid,
  .ah-line-bot {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .ah-sunburst {
    width: 16px;
    height: 16px;
  }

  .ah-brush-underline {
    bottom: -4px;
    height: 8px;
  }

  .ah-modal-subtitle {
    font-size: 0.72rem;
    line-height: 1.32;
    margin-top: 4px;
    margin-bottom: 6px;
  }

  /* Inner card compact on mobile */
  .ah-offer-white-card {
    padding: 10px 10px 8px;
    border-radius: 14px;
  }

  .ah-offer-white-card .form-field {
    margin-bottom: 6px;
  }

  .ah-offer-white-card .form-label {
    font-size: 0.7rem;
    margin-bottom: 3px;
    gap: 4px;
  }

  .ah-offer-white-card .form-label svg {
    width: 13px;
    height: 13px;
  }

  .ah-offer-white-card .form-input {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* Keep Name / Surname side-by-side on mobile to save vertical space */
  .ah-modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ah-consent-block {
    margin: 6px 0;
    padding: 6px 0;
    gap: 6px;
  }

  .ah-switch-wrapper {
    width: 28px;
    height: 16px;
  }

  .ah-switch-slider:before {
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
  }

  .ah-switch-input:checked + .ah-switch-slider:before {
    transform: translateX(12px);
  }

  .ah-consent-text {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .ah-offer-kvkk-box {
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    gap: 6px;
  }

  .ah-kvkk-shield-icon svg {
    width: 14px;
    height: 14px;
  }

  .ah-kvkk-info {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .ah-kvkk-right-stamp {
    font-size: 0.62rem;
    padding-left: 6px;
  }

  .ah-kvkk-right-stamp svg {
    width: 13px;
    height: 13px;
  }

  .ah-turnstile-container {
    margin: 4px 0;
  }

  .ah-submit-wrap {
    margin-top: 4px;
  }

  .ah-btn-creative {
    max-width: 100%;
    width: 100%;
    padding: 9px 16px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .ah-submit-burst {
    display: none;
  }

  .ah-modal-skip-btn {
    margin-top: 4px;
    padding: 3px 6px;
    font-size: 0.74rem;
  }

  .ah-offer-bottom-note {
    margin-top: 6px;
    padding-top: 6px;
    justify-content: center;
  }

  .ah-bottom-arrow-text {
    display: none;
  }

  .ah-brand-link {
    padding: 3px 10px;
    font-size: 0.72rem;
  }
}

/* ── SweetAlert2 z-index override — must appear above the modal overlay (99999) ── */
.swal2-container {
  z-index: 999999 !important;
}
