/* Gordita Webfonts */
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Regular.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Regular.woff') format('woff'),
       url('../assets/fonts/Gordita-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Italic.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Italic.woff') format('woff'),
       url('../assets/fonts/Gordita-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Light.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Light.woff') format('woff'),
       url('../assets/fonts/Gordita-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-LightItalic.woff2') format('woff2'),
       url('../assets/fonts/Gordita-LightItalic.woff') format('woff'),
       url('../assets/fonts/Gordita-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Medium.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Medium.woff') format('woff'),
       url('../assets/fonts/Gordita-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-MediumItalic.woff2') format('woff2'),
       url('../assets/fonts/Gordita-MediumItalic.woff') format('woff'),
       url('../assets/fonts/Gordita-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Bold.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Bold.woff') format('woff'),
       url('../assets/fonts/Gordita-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-BoldItalic.woff2') format('woff2'),
       url('../assets/fonts/Gordita-BoldItalic.woff') format('woff'),
       url('../assets/fonts/Gordita-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-Black.woff2') format('woff2'),
       url('../assets/fonts/Gordita-Black.woff') format('woff'),
       url('../assets/fonts/Gordita-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('../assets/fonts/Gordita-BlackItalic.woff2') format('woff2'),
       url('../assets/fonts/Gordita-BlackItalic.woff') format('woff'),
       url('../assets/fonts/Gordita-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Global base: use Gordita everywhere and remove default margins */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Gordita', sans-serif;
}
/* Ensure form controls also inherit Gordita */
:where(input, textarea, select, button, label, .agpt-card, .agpt-form, .agpt-title) {
  font-family: 'Gordita', sans-serif !important;
}
/* Consistent design tokens to match post-job-pages */
:root {
  --primary0: #265CFF;
  --primary1: #77A2FF;
  --primary3: #BAD2FF;
  --primary4: #EBF1FF;
  --text-header: #0d0e0f;
  --text-body: #292c34;
  --shadow-small: 0 8px 12px 2px rgba(0, 28, 53, 0.05);
}
/* ==========================
   Apply GPT Form (top section)
   ========================== */
.agpt-form-section {
  background: #ffffff;
  padding: 80px 16px 140px; /* larger bottom gap before HIW */
}
.agpt-container { width: 100%; max-width: 1240px; margin: 0 auto; }
.agpt-title {
  margin: 0 0 22px;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 500;
  color: #0b0b0b;
  text-align: center;
}
.agpt-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(37,99,235,0.10), 0 6px 14px rgba(0,0,0,0.04);
  border: 1px solid #e6eeff;
  padding: 64px 64px 64px; /* more breathing room inside card */
}

/* Steps line + icons */
.agpt-steps { position: relative; display: flex; justify-content: center; align-items: center; gap: 72px; margin-bottom: 64px; }
.agpt-steps .agpt-line { position: absolute; top: 18px; left: 96px; right: 96px; height: 1px; background: #e8effe; }
.agpt-step { position: relative; width: 36px; height: 36px; border-radius: 999px; background: #ffffff; border: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: default; color: #2563eb; }
.agpt-step .agpt-icon { width: 20px; height: 20px; display: block; }
.agpt-step.is-active { border: 0; box-shadow: 0 8px 18px rgba(0, 28, 90, 0.2); background-color: #2563eb; color: #ffffff; }

/* Header */
.agpt-header { display: flex; align-items: center; gap: 14px; margin: 6px 0 28px; }
.agpt-header-icon { width: 26px; height: 26px; display: inline-block; color: #2563eb; }
.agpt-header-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: 0; color: #0b0b0b; }

/* Icon system: use CSS mask so color = currentColor */
.agpt-icon, .agpt-header-icon {
  background-color: currentColor;
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
}

/* Specific icon masks (maps to assets/icons) */
.icon-briefcase { -webkit-mask-image: url('../assets/icons/briefcase.svg'); mask-image: url('../assets/icons/briefcase.svg'); }
.icon-card { -webkit-mask-image: url('../assets/icons/card.svg'); mask-image: url('../assets/icons/card.svg'); }
.icon-check { -webkit-mask-image: url('../assets/icons/check.svg'); mask-image: url('../assets/icons/check.svg'); }
.icon-note { -webkit-mask-image: url('../assets/icons/note.svg'); mask-image: url('../assets/icons/note.svg'); }
.icon-person { -webkit-mask-image: url('../assets/icons/person.svg'); mask-image: url('../assets/icons/person.svg'); }

/* Form */
.agpt-form { display: flex; flex-direction: column; gap: 36px; }
.agpt-row { display: flex; flex-direction: column; gap: 16px; }
.agpt-row--email .agpt-inline { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
.agpt-row--email .agpt-inline .agpt-input { flex: 1 1 auto; min-width: 0; }
.agpt-row--email .agpt-login-inline { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.agpt-row--email .agpt-login-text { margin-right: 6px; }
.agpt-row .agpt-label { margin-bottom: -4px; }
.agpt-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agpt-label { font-size: 14px; font-weight: 500; color: #0b0b0b; display: inline-flex; align-items: center; gap: 6px; }
.agpt-help { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; background: #eef3ff; color: #2563eb; font-size: 12px; font-weight: 700; }
/* Inline tooltip wrapper for labels */
.agpt-tip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.agpt-tip-box {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  min-width: 360px;
  max-width: 520px;
  background: #ffffff;
  color: #0b0b0b;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
  pointer-events: none;
}
.agpt-tip:hover .agpt-tip-box,
.agpt-tip:focus-within .agpt-tip-box { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.agpt-tip-box::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.02);
}

/* Prevent tooltip clipping on small screens */
@media (max-width: 600px) {
  /* Make the row the positioning context */
  .agpt-row { position: relative; }
  .agpt-tip { position: static; }
  .agpt-tip-box {
    left: 16px;          /* respect viewport padding */
    right: 16px;         /* respect viewport padding */
    top: calc(100% + 8px);
    transform: none;     /* no translate when spanning width */
    min-width: 0;        /* allow flex width */
    max-width: none;     /* span available width */
  }
  .agpt-tip-box::before { display: none; }
}
/* Unified field styling to match post-job-pages */
.agpt-input, .agpt-textarea {
  width: 100%;
  border: 1px solid var(--primary4);
  background: #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--text-header);
}
.agpt-input::placeholder, .agpt-textarea::placeholder { color: #667085; }
.agpt-input:hover, .agpt-textarea:hover { box-shadow: var(--shadow-small); }
.agpt-input:focus, .agpt-textarea:focus { outline: none; box-shadow: var(--shadow-small); background: #ffffff; }
.agpt-textarea { min-height: 92px; resize: vertical; }
.agpt-input { min-height: 40px; }

/* Validation states */
.agpt-invalid { border-color: #ef4444 !important; box-shadow: none !important; }
.agpt-error { color: #ef4444; font-size: 13px; margin-top: 6px; display: none; }
.agpt-error:not(:empty) { display: block; }

/* Login inline */
.agpt-login-inline { display: flex; align-items: center; gap: 10px; }
.agpt-login-text { font-size: 14px; color: #444; }
.agpt-login-btn { appearance: none; border: none; border-radius: 999px; background: #2563eb; color: #fff; height: 36px; padding: 0 16px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 22px rgba(37,99,235,0.28); }
.agpt-login-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* Actions */
.agpt-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.agpt-next-btn { appearance: none; border: none; border-radius: 999px; background: #2563eb; color: #fff; height: 36px; padding: 0 22px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 14px 26px rgba(37,99,235,0.30); }
.agpt-next-arrow { width: 12px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); display: inline-block; }
.agpt-next-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .agpt-title { font-size: 44px; }
  .agpt-card { border-radius: 22px; padding: 28px 20px 28px; }
  .agpt-steps { gap: 44px; }
  .agpt-steps .agpt-line { left: 24px; right: 24px; }
  .agpt-row-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .agpt-row--email .agpt-inline { flex-direction: column; align-items: stretch; gap: 10px; }
  .agpt-row--email .agpt-login-inline { align-self: flex-start; }
}

/* Phone-specific refinements */
@media (max-width: 600px) {
  /* Slightly tighter card and header */
  .agpt-card { padding: 28px 18px 28px; border-radius: 20px; }
  .agpt-header-title { font-size: 22px; }
  .agpt-form { gap: 32px; }
  .agpt-row { gap: 14px; }

  /* Stack email input and align login group to the right on its own line */
  .agpt-row--email .agpt-inline { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .agpt-row--email .agpt-login-inline { align-self: flex-start; justify-content: flex-start; width: 100%; margin: 8px 0 12px; }
  .agpt-row--email .agpt-login-text { margin-right: 8px; }

  /* Compact controls on mobile */
  .agpt-input { min-height: 34px; padding: 6px 12px; }
  .agpt-login-btn, .agpt-next-btn { height: 34px; padding: 0 18px; }
  .agpt-actions { margin-top: 28px; }
}

/* Pricing selection (replaces form on this screen) */
.agpt-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.agpt-price-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  border: 1px solid #e6eeff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.agpt-price-card--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #1e4fd6;
  box-shadow: 0 24px 48px rgba(37,99,235,0.35), 0 2px 8px rgba(0,0,0,0.06);
}

.agpt-price-card--ghost {
  background: #ffffff;
  border-color: #e8effe;
  box-shadow: 0 14px 32px rgba(37,99,235,0.10), 0 2px 6px rgba(0,0,0,0.04);
}

.agpt-price-badge {
  display: inline-block;
  align-self: center; /* center chip */
  background: #ffffff; /* default = Premium */
  color: #2563eb;
  border: 1px solid #e6eeff;
  padding: 10px 22px; /* slightly bigger/wider */
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.4px;
  width: max-content;
  box-shadow: 0 10px 24px rgba(16,24,40,0.06);
}

.agpt-price-badge--ghost {
  background: #2563eb; /* Free chip */
  color: #ffffff;
  border: 0;
  padding: 10px 24px; /* slightly wider for Free */
  box-shadow: 0 12px 26px rgba(37,99,235,0.30);
}

.agpt-price-display { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 12px; justify-content: center; }
.agpt-price-display .agpt-currency { font-size: 56px; font-weight: 700; line-height: 1; }
.agpt-price-display .agpt-amount { font-size: 112px; font-weight: 700; line-height: 0.9; letter-spacing: -1.2px; }

/* Both cards: prices centered as a group */
.agpt-price-card--primary .agpt-price-display { justify-content: center; }
.agpt-price-card--ghost .agpt-price-display { justify-content: center; }

.agpt-price-display--ghost { flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; margin: 28px 0 12px; }
.agpt-price-display--ghost .agpt-currency { color: #2563eb; font-size: 60px; line-height: 1; }
.agpt-price-display--ghost .agpt-amount { color: #2563eb; font-size: 104px; line-height: 0.92; letter-spacing: -1px; }

.agpt-price-sub { margin: 6px 0 14px; color: rgba(255,255,255,0.9); font-size: 15px; text-align: center; }
.agpt-price-sub--ghost { color: #6b7280; text-align: center; margin: 6px 0 14px; }

.agpt-price-features { list-style: none; padding: 0; margin: 16px auto 18px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; text-align: left; }
.agpt-price-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.95); }
.agpt-price-features img { width: 18px; height: 18px; }

.agpt-price-features--ghost { margin-top: 18px; align-self: center; text-align: left; width: 100%; max-width: 420px; padding: 0 16px; }
.agpt-price-features--ghost li { color: #0b0b0b; font-size: 16px; }

.agpt-price-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 14px 26px rgba(37,99,235,0.20);
  align-self: center; /* center buttons on both cards */
  margin-top: auto;
}

.agpt-price-card--ghost .agpt-price-btn {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(37,99,235,0.30);
}

/* Remove previous left alignment overrides to keep both centered */
.agpt-price-card--primary .agpt-price-btn { align-self: center; margin-left: 0; }
.agpt-price-card--ghost  .agpt-price-btn { align-self: center; }

/* remove decorative bar */
.agpt-price-card::before{ content: none; }

.agpt-price-actions { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(28px, 6vw, 64px); }
.agpt-back { width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.agpt-back::before { content: ''; position: absolute; }
.agpt-back { position: relative; }
.agpt-back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 2px solid #0b0b0b; border-right: 2px solid #0b0b0b; transform: translate(-50%, -50%) rotate(-135deg); }

@media (max-width: 900px) {
  .agpt-price-display .agpt-amount { font-size: 92px; }
  .agpt-price-display .agpt-currency { font-size: 44px; }
}

@media (max-width: 700px) {
  .agpt-pricing { grid-template-columns: 1fr; }
}

/* ==========================
   Payment layout (payement.html)
   ========================== */
.agpt-pay {
  display: grid;
  grid-template-columns: 1fr 420px; /* left fills space, right is fixed */
  gap: 40px; /* a bit more breathing room between form and summary */
  align-items: start;
}

.agpt-pay-left { display: flex; flex-direction: column; gap: 16px; padding-right: 32px; width: 100%; } /* left column is fluid so every field uses the same width */

.agpt-pay-field { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.agpt-pay-label-row { display: flex; align-items: center; justify-content: space-between; }

.agpt-pay-select {
  width: 100%;
  max-width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--primary4);
  background: #ffffff;
  padding: 0 38px 0 12px;
  font-size: 16px;
  color: var(--text-header);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2563eb 50%), linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  display: block;
  box-sizing: border-box;
}
.agpt-pay-select:hover { box-shadow: var(--shadow-small); }

.agpt-pay-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--primary4);
  background: #ffffff;
  padding: 0 12px;
  font-size: 16px;
  color: var(--text-header);
  min-width: 0;
  box-sizing: border-box;
}
.agpt-pay-input::placeholder { color: #667085; }
.agpt-pay-input:hover { box-shadow: var(--shadow-small); }
.agpt-pay-input:focus { outline: none; box-shadow: var(--shadow-small); }

.agpt-pay-brands { display: inline-flex; gap: 10px; align-items: center; }
.agpt-pay-brands img { height: 16px; width: auto; display: block; }

.agpt-pay-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; width: 100%; } /* prevent Expiration and CVC from merging */
.agpt-pay-col { min-width: 0; }
.agpt-pay-col { display: flex; flex-direction: column; gap: 8px; }

/* Summary card */
.agpt-pay-summary {
  background: #ffffff;
  border: 1px solid #e6eeff;
  border-radius: 14px;
  padding: 26px; /* slightly more internal spacing */
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
  min-height: 280px;
}
.agpt-pay-sum-title { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #0b0b0b; text-align: center; }
.agpt-pay-sum-sub { margin: 0 0 14px; text-align: center; color: #0b0b0b; font-weight: 500; }

.agpt-pay-voucher { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; } /* more gap between e‑Voucher and Apply */
.agpt-pay-apply {
  appearance: none; border: none; border-radius: 8px; height: 38px; padding: 0 16px;
  background: #2563eb; color: #ffffff; font-weight: 700; box-shadow: 0 10px 22px rgba(37,99,235,0.28);
}

.agpt-pay-break { height: 16px; }
.agpt-pay-line { display: flex; justify-content: space-between; align-items: center; color: #6b7280; font-size: 14px; margin: 8px 0; }
.agpt-pay-muted { color: #6b7280; }
.agpt-pay-amt { color: #0b0b0b; }
.agpt-pay-amt--bold { font-weight: 700; }

.agpt-pay-total { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }

/* Footer actions alignment */
.agpt-pay-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

@media (max-width: 900px) {
  .agpt-pay { grid-template-columns: 1fr; gap: 24px; }
  .agpt-pay-select { width: 100%; }
}

@media (max-width: 700px) {
  /* Stack Expiration and CVC on small screens to avoid merging */
  .agpt-pay-row2 { grid-template-columns: 1fr; gap: 12px; }
  /* Ensure select stays visually connected to following inputs */
  .agpt-pay-field { gap: 10px; }
  /* Tighten caret placement on small screens */
  .agpt-pay-select { background-position: right 14px center, right 8px center; }
}

/* ==========================
   Personal layout (personal.html)
   ========================== */
.agpt-person { display: flex; flex-direction: column; gap: 18px; }
/* Use a consistent 12-column grid for all rows */
.agpt-person-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; width: 100%; }
.agpt-person-row--3 > .agpt-person-col { grid-column: span 4; }
.agpt-person-row--2 > .agpt-person-col { grid-column: span 6; }

.agpt-person-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.agpt-person-input, .agpt-person-select, .agpt-person-prefix {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--primary4);
  background: #ffffff;
  padding: 0 12px;
  font-size: 16px;
  color: var(--text-header);
  box-sizing: border-box;
}
.agpt-person-input::placeholder { color: #667085; }
.agpt-person-input:hover, .agpt-person-select:hover { box-shadow: var(--shadow-small); }
.agpt-person-input:focus { outline: none; box-shadow: var(--shadow-small); }

.agpt-person-select {
  appearance: none;
  background: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, #2563eb 50%), linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Date field with calendar icon */
.agpt-person-date { position: relative; }
.agpt-person-date .agpt-person-input { padding-right: 40px; }
.agpt-person-cal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
}
.agpt-person-cal::before { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: url('../assets/form-nav/calender-blue.svg') center/contain no-repeat; opacity: 0.9; }

/* Phone field with prefix */
.agpt-person-phone { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.agpt-person-prefix { background: #f4f6fb; color: #6b7280; }

.agpt-person-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

@media (max-width: 900px) {
  .agpt-person-row { grid-template-columns: 1fr; }
  .agpt-person-row--3 > .agpt-person-col,
  .agpt-person-row--2 > .agpt-person-col { grid-column: span 1; }
}

/* ==========================
   Professional layout (professional.html)
   ========================== */
.agpt-prof { display: flex; flex-direction: column; gap: 18px; }
.agpt-prof-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; width: 100%; }
.agpt-prof-row--3 > .agpt-prof-col { grid-column: span 4; }
.agpt-prof-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.agpt-prof-input, .agpt-prof-select {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--primary4); background: #ffffff; padding: 0 12px; font-size: 16px; color: var(--text-header); box-sizing: border-box;
}
.agpt-prof-input::placeholder { color: #667085; }
.agpt-prof-input:hover, .agpt-prof-select:hover { box-shadow: var(--shadow-small); }
.agpt-prof-input:focus { outline: none; box-shadow: var(--shadow-small); }
.agpt-prof-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #2563eb 50%), linear-gradient(135deg, #2563eb 50%, transparent 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }

/* Upload drop area */
.agpt-prof-upload { display: flex; flex-direction: column; gap: 10px; }
.agpt-prof-drop { border-radius: 10px; border: 1px solid #e6eeff; background: #eef3ff; height: 84px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #e6eeff; }
.agpt-prof-cloud { width: 28px; height: 28px; display: inline-block; background: radial-gradient(circle at 50% 50%, #2563eb 0, #2563eb 40%, transparent 41%) 50% 50%/60% 60% no-repeat; position: relative; }
.agpt-prof-cloud::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 10px; border: 2px solid #2563eb; border-top-left-radius: 12px; border-top-right-radius: 12px; border-bottom: none; transform: translate(-50%, -30%); background: transparent; }
.agpt-prof-note { color: #6b7280; font-size: 12px; line-height: 1.6; }

.agpt-prof-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

@media (max-width: 900px) {
  .agpt-prof-row { grid-template-columns: 1fr; }
  .agpt-prof-row--3 > .agpt-prof-col { grid-column: span 1; }
}

/* ==========================
   Account layout (account.html)
   ========================== */
.agpt-header-sub { margin: 4px 0 0; color: #6b7280; font-size: 14px; font-weight: 500; }

.agpt-account { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.agpt-google-btn { appearance: none; border: none; height: 44px; padding: 0 18px; border-radius: 999px; background: #2563eb; color: #ffffff; font-weight: 700; box-shadow: 0 14px 26px rgba(37,99,235,0.30); display: inline-flex; align-items: center; gap: 10px; }
.agpt-google-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; }
.agpt-google-icon img { width: 18px; height: 18px; display: block; }

.agpt-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin-top: 4px; }
.agpt-or-line { height: 1px; background: #e6eeff; display: block; }
.agpt-or-text { color: #6b7280; font-size: 14px; }

.agpt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; max-width: 680px; border-bottom: 2px solid #e6eeff; }
.agpt-tab { appearance: none; background: transparent; border: none; padding: 10px 8px; font-weight: 600; color: #6b7280; }
.agpt-tab.is-active { color: #2563eb; position: relative; }
.agpt-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #2563eb; }

.agpt-account-form { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.agpt-field { display: flex; flex-direction: column; gap: 8px; }
.agpt-account-input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--primary4); background: #ffffff; padding: 0 12px; font-size: 16px; color: var(--text-header); }
.agpt-account-input::placeholder { color: #667085; }
.agpt-account-input:hover { box-shadow: var(--shadow-small); }
.agpt-pass-wrap { position: relative; }
.agpt-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent url('../assets/eye.svg') center/18px 18px no-repeat; cursor: pointer; }
.agpt-eye:focus-visible { outline: 2px solid #cfe0ff; border-radius: 8px; }

.agpt-terms { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: #6b7280; font-size: 13px; margin-top: 8px; }
.agpt-terms a { color: #2563eb; font-weight: 600; text-decoration: none; }

.agpt-account-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

.is-hidden { display: none; }

/* ==========================
   Success layout (success.html)
   ========================== */
.agpt-success { text-align: center; padding: 8px 0 4px; }
.agpt-success-text { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #0b0b0b; }
.agpt-success-actions { display: flex; justify-content: center; }

/* Payment Success (payment-success.html) */
.agpt-success-wrap {
  display: grid;
  grid-template-columns: 1fr 300px; /* text | illustration */
  gap: 32px;
  min-height: 360px;
  margin-top: -8px; /* nudge section up to align with other pages */
}

.agpt-success-left { display: flex; flex-direction: column; gap: 8px; }
.agpt-success-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.agpt-success-chip { width: 22px; height: 22px; display: inline-block; background: url('../assets/form-nav/card-blue.svg') center/contain no-repeat; }
.agpt-success-heading { margin: 0; font-size: 26px; font-weight: 600; color: #0b0b0b; letter-spacing: 0; }
.agpt-success-sub { margin: 0 0 22px; color: #292c34; font-size: 15px; }

.agpt-success-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; row-gap: 24px; max-width: 560px; }
.agpt-success-item { display: grid; grid-template-columns: 200px 1fr; align-items: baseline; }
.agpt-success-label { color: #6b7280; font-size: 16px; }
.agpt-success-value { color: #6b7280; font-size: 32px; font-weight: 600; letter-spacing: 0.2px; }
.agpt-success-currency { color: #2563eb; }
.agpt-success-mode { color: #4b5563; }
.agpt-success-txid { color: #4b5563; }
.agpt-r { font-size: 22px; margin-right: 2px; }

.agpt-success-right { display: flex; justify-content: flex-end; align-self: center; }
.agpt-success-illu { width: 260px; height: auto; display: block; }

@media (max-width: 900px) {
  .agpt-success-wrap { grid-template-columns: 1fr; gap: 18px; min-height: 0; }
  .agpt-success-right { justify-content: center; }
  .agpt-success-illu { width: 220px; }
}

/* Phone-specific fixes for Payment Success first section */
@media (max-width: 600px) {
  /* slightly smaller page title for narrow phones (first section only) */
  .agpt-title { font-size: 36px; }

  .agpt-success-head { gap: 8px; margin-bottom: 12px; }
  .agpt-success-heading { font-size: 20px; }
  .agpt-success-sub { font-size: 14px; margin-bottom: 14px; }

  .agpt-success-list { row-gap: 14px; }
  /* make label/value fit without overflow */
  .agpt-success-item { grid-template-columns: 1fr auto; }
  .agpt-success-label { font-size: 14px; }
  .agpt-success-value { font-size: 20px; }
  .agpt-r { font-size: 16px; }
  /* allow long IDs to wrap on small screens */
  .agpt-success-txid { word-break: break-all; }
}

/* How it works section */
.hiw-section {
  background-color: #2563eb; /* solid blue background */
  padding: 72px 16px;
  color: #ffffff;
  margin: 0; /* flush with page */
  display: flex;
  justify-content: center; /* center inner container without margins */
}

.hiw-container {
  width: 100%;
  max-width: 1160px;
}

.hiw-title {
  text-align: center;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0; /* no margins in section */
  padding-bottom: 48px; /* spacing using padding only */
}

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr; /* step, arrow, step, ... */
  grid-template-rows: 64px 28px auto; /* row1 icons, row2 titles, row3 descriptions */
  align-items: start; /* align items to the start of their grid areas */
  gap: 24px;
}

.hiw-step {
  text-align: center;
  color: #e6f0ff; /* lighter text for descriptions */
  display: grid;
  grid-template-rows: 64px 28px auto; /* icon row, title row, description grows */
  justify-items: center; /* center items horizontally */
  align-items: start; /* top align rows */
  row-gap: 12px; /* spacing between rows */
  grid-row: 1 / span 3; /* make each step occupy all three parent rows */
}

.hiw-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.hiw-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hiw-step-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0; /* no margins in section */
  line-height: 28px; /* match the fixed title row height */
  white-space: nowrap; /* keep headings on one line for perfect alignment */
}

.hiw-step-desc {
  margin: 0; /* ensure no margins */
  font-size: 14px;
  line-height: 1.6;
}

.hiw-arrow {
  width: 100px;
  height: auto;
  display: block;
  opacity: 0.9;
  justify-self: center; /* center in its grid column */
  align-self: center; /* center vertically within the icon row */
  grid-row: 1; /* place arrow on the icons row */
}

/* Responsive */
@media (max-width: 1024px) {
  .hiw-steps {
    display: flex;            /* stack steps as a vertical list */
    flex-direction: column;
    gap: 28px;    
    align-items: center            /* comfortable space between each step */
  }
  .hiw-arrow {
    display: none;
  }
  .hiw-section { padding: 48px 16px; }
  .hiw-title { font-size: 28px; margin-bottom: 24px; text-align: center; }
  /* Mobile-friendly HIW step spacing */
  .hiw-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0; }
  .hiw-icon { width: 48px; height: 48px; }
  .hiw-step-title { white-space: normal; line-height: 1.3; font-size: 16px; font-weight: 700; margin: 0; }
  .hiw-step-desc { font-size: 14px; line-height: 1.6; max-width: 320px; }
}

/* Extra-tight layout for small phones */
@media (max-width: 600px) {
  .hiw-section { padding: 56px 16px; }
  .hiw-steps { gap: 24px; }
  .hiw-step { align-items: center; text-align: center; gap: 8px; }
  .hiw-icon { width: 44px; height: 44px; }
  .hiw-step-title { font-size: 16px; line-height: 1.35; }
  .hiw-step-desc { font-size: 14px; line-height: 1.6; max-width: 320px; }
}

/* Collaboration section */
.collab-section {
  margin: 0; /* keep section flush with page edges */
  padding: 96px 16px; /* spacing inside the section */
  background: #ffffff;
  display: block; /* full width section */
}

.collab-container {
  width: 100%;
  max-width: none; /* make section full width */
  display: grid;
  grid-template-columns: 1fr 1fr; /* image | content */
  align-items: start; /* top-align so heading starts at top of image */
  gap: 30px; /* space between image and text */
}

.collab-media { padding-left: 200px; }
.collab-media img {
  display: block;
  width: 60%;
  height: auto;
}

.collab-content {
  color: #000000; /* neutral dark for text */
  max-width: 540px; /* limit line length similar to mock */
  align-self: start; /* ensure content starts from top */
  padding-right: 64px; /* symmetric spacing to the right */
}

.collab-title {
  margin: 0 0 16px 0;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  color: #000000; /* dark green headline */
}

.collab-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #6b7280; /* muted */
}

@media (max-width: 900px) {
  .collab-container {
    grid-template-columns: 1fr; /* stack image above text */
    gap: 24px;
  }
  .collab-media { padding-left: 0; order: 2; margin-top: 16px; }
  .collab-media img { width: 100%; max-width: 520px; margin: 0 auto; }
  .collab-content { padding-right: 0; max-width: 100%; order: 1; }
  .collab-title {
    font-size: 32px;
  }
}

/* Stats section */
.stats-section {
  background: #ffffff;
  padding: 80px 16px; /* generous whitespace like the mock */
}

.stats-container {
  width: 100%;
  max-width: 1160px; /* align with hiw max width */
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* wide spacing between items */
  align-items: flex-start;
  gap: clamp(24px, 8vw, 200px); /* responsive horizontal spacing */
}

.stat-item {
  text-align: center;
}

.stat-value {
  color: #000000;
  font-weight: 500;
  font-size: 56px; /* bold, prominent numbers */
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.stat-label {
  margin-top: 12px;
  color: #6b7280; /* muted gray */
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .stat-value { font-size: 48px; }
}

@media (max-width: 900px) {
  .stats-container { gap: 64px; }
  .stat-value { font-size: 42px; }
}

@media (max-width: 640px) {
  .stats-section { padding: 64px 16px; }
  .stats-container {
    flex-direction: column;
    align-items: center;
    gap: 36px; /* a bit more vertical spacing between items */
  }
  .stat-value { font-size: 36px; }
  .stat-label { font-size: 15px; }
}

/* FAQ section */
.faq-section {
  background: #ffffff;
  padding: 80px 16px 100px; /* ample whitespace around the card */
}

.faq-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.faq-title {
  margin: 0 0 28px 0;
  text-align: center;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  color: #000;
}

.faq-card {
  background: #eef3ff; /* soft bluish background from reference */
  border-radius: 20px;
  padding: 10px 24px; /* inner breathing space (dividers provide rows) */
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 18px 6px;
  cursor: pointer;
  color: #0b0b0b;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  font-family: Gordita;
}

.faq-question:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 8px; }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  flex: 0 0 28px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
}

/* plus sign */
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #0b0b0b;
  transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

/* when open -> minus */
.faq-item.is-open .faq-icon { background: #2563eb; box-shadow: none; }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: #ffffff; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg) scaleX(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
  padding: 0 6px;
}

.faq-item.is-open .faq-answer { max-height: 240px; /* enough for 2-3 lines */ }

.faq-answer p {
  margin: 0 0 18px 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

.faq-divider {
  border: 0;
  border-top: 1px solid rgba(11,11,11,0.08);
  margin: 0 6px;
}

@media (max-width: 900px) {
  .faq-title { font-size: 36px; }
  .faq-card { border-radius: 16px; }
  .faq-question { font-size: 18px; padding: 16px 6px; }
}

@media (max-width: 600px) {
  .faq-section { padding: 56px 16px 72px; }
  .faq-title { font-size: 30px; }
}

/* Testimonials section (desktop-first) */
.t-section {
  background: #ffffff;
  padding: 80px 16px 110px;
}

.t-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.t-quote {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.t-heading {
  margin: 0 0 28px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  color: #2563eb; /* brand blue */
}

.t-slider {
  position: relative;
  padding: 20px 72px; /* space for side arrows */
}

/* Simple fade/slide animation for content swaps */
@keyframes t-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.t-anim { animation: t-fade-up 420ms ease; }

/* Dots are mobile-only by default */
.t-dots { display: none; }

.t-text {
  margin: 28px auto 18px;
  max-width: 900px;
  font-size: 28px;
  line-height: 1.7;
  color: #0b0b0b;
  font-weight: 500;
}

.t-author {
  margin: 10px 0 26px;
  font-size: 16px;
  color: #6b7280;
}

/* Hide mobile-only avatar by default (desktop/tablet) */
.t-mobile-avatar { display: none; }

.t-author .t-name { font-weight: 700; color: #0b0b0b; margin: 0 8px; }
.t-author .t-dash { margin-right: 6px; color: #0b0b0b; }

.t-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.t-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  padding: 3px; /* ring space */
  background: radial-gradient(circle at 30% 30%, #f3f4f6, #e5e7eb);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #e5e7eb inset;
}

.t-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.t-avatar.is-active { box-shadow: 0 0 0 2px #2563eb inset; transform: translateZ(0); }

.t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.t-prev { left: 16px; background: #f2f4f8; box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset; }
.t-next { right: 16px; background: #2563eb; box-shadow: 0 6px 14px rgba(37,99,235,0.25); }

/* draw chevrons */
.t-nav::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.t-prev { color: #0b0b0b; }
.t-prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
.t-next { color: #ffffff; }

/* Desktop focus styles */
.t-nav:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.t-avatar:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* Keep mobile simple for now; desktop focused per request */
@media (max-width: 900px) {
  .t-heading { font-size: 32px; }
  .t-text { font-size: 22px; }
}

/* Mobile-specific testimonial design */
@media (max-width: 640px) {
  .t-container { max-width: 560px; }
  /* Add comfortable top/bottom padding for the whole section */
  .t-section { padding: 56px 16px 80px; }
  /* remove large desktop side padding since arrows are hidden */
  .t-slider { padding: 0 16px; }
  .t-quote { width: 36px; margin-bottom: 12px; }
  .t-heading { font-size: 28px; margin-bottom: 18px; }

  /* Blue card */
  .t-slide {
    background: #2563eb;
    border-radius: 16px;
    padding: 28px 18px 28px; /* avatar inside card */
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px; /* ensure room for quote + author + avatar */
  }
  .t-text { color: #ffffff; font-size: 20px; line-height: 1.8; max-width: 100%; }
  /* Keep author near the bottom area */
  .t-author { color: rgba(255,255,255,0.85); margin-top: 16px; }
  .t-author .t-name { color: #ffffff; }
  .t-author .t-dash { color: #ffffff; }

  /* Hide desktop UI on mobile */
  .t-avatars { display: none; }

  /* Mobile avatar sits centered INSIDE the card, anchored to bottom */
  .t-mobile-avatar { display: flex; position: static; justify-content: center; margin-top: auto; transform: none; }
  .t-mobile-avatar img { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 6px #ffffff; }

  /* Dots pagination */
  .t-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; flex: 1; }
  .t-dot { width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none; background: #d1d5db; appearance: none; -webkit-appearance: none; }
  .t-dot.is-active { background: #2563eb; }

  /* Mobile navigation: arrows + dots in a row below card */
  .t-slider {
    display: flex;
    flex-wrap: wrap;
  }
  .t-slide { width: 100%; order: 1; }
  .t-prev { order: 2; }
  .t-dots { order: 3; }
  .t-next { order: 4; }

  /* Mobile arrow styling */
  .t-prev, .t-next {
    position: static;
    transform: none;
    width: 36px;
    height: 36px;
    margin-top: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    flex-shrink: 0;
  }
  .t-nav::before {
    width: 7px;
    height: 7px;
  }
}

/* ==========================
   Modals (Login / Forgot / Sent)
   ========================== */
.agpt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(90%) blur(1px);
  z-index: 1000;
}

.agpt-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1001;
}

.agpt-modal[hidden],
.agpt-overlay[hidden] { display: none !important; }

.agpt-modal-card {
  width: min(460px, calc(100% - 32px));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e7ecfb;
  padding: 22px 22px 26px;
  position: relative;
}

.agpt-modal-card--small { width: min(520px, calc(100% - 32px)); }

.agpt-modal-title { margin: 8px 0 14px; text-align: center; font-size: 30px; font-weight: 700; color: #0b0b0b; }
/* Blue emphasis variant for special prompts */
.agpt-modal-title--blue { color: #2563eb; font-size: 34px; }

.agpt-modal-sub { margin: 6px 12px 22px; text-align: center; color: #6b7280; line-height: 1.6; font-size: 16px; }

.agpt-modal-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }

/* Inputs look in modals (override general form look) */
.agpt-modal .agpt-label { font-size: 16px; font-weight: 600; color: #0b0b0b; }
.agpt-modal .agpt-input {
  background: #ffffff; border: 1px solid var(--primary4); min-height: 40px; padding: 8px 12px; font-size: 16px; border-radius: 10px;
}
.agpt-modal .agpt-input::placeholder { color: #667085; }
.agpt-modal .agpt-input:hover { box-shadow: var(--shadow-small); }
.agpt-modal .agpt-input:focus { outline: none; box-shadow: var(--shadow-small); background: #ffffff; }

.agpt-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; }
.agpt-modal-close:hover{ background: transparent; }
.agpt-modal-close::before,
.agpt-modal-close::after{
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; background: #6b7280;
  transform-origin: center; border-radius: 2px;
}
.agpt-modal-close::before{ transform: translate(-50%, -50%) rotate(45deg);} 
.agpt-modal-close::after{ transform: translate(-50%, -50%) rotate(-45deg);} 

.agpt-primary-btn{ appearance: none; border: none; cursor: pointer; border-radius: 999px; background: #2563eb; color: #fff; height: 54px; padding: 0 28px; font-size: 16px; font-weight: 600; box-shadow: 0 14px 26px rgba(37,99,235,0.30); width: 100%; }

.agpt-link-btn{ border: none; background: transparent; color: #2563eb; font-weight: 600; display: block; margin: 14px auto 4px; cursor: pointer; }

.agpt-password-wrap{ position: relative; }
.agpt-pass-toggle{ position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; border: 0; background: #f7f9ff url('../assets/eye.svg') center/18px 18px no-repeat; cursor: pointer; }

/* Outlined secondary button for modal choice */
.agpt-secondary-btn{
  appearance: none;
  background: #ffffff;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 999px;
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
}
.agpt-secondary-btn:focus-visible{ outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* simple faux recaptcha look */
.agpt-recaptcha { margin: 6px 0 12px; }
.agpt-recaptcha-box{ display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e6eaf5; border-radius: 10px; background: #ffffff; }
.agpt-recaptcha-check{ width: 20px; height: 20px; border: 2px solid #9aa8c7; border-radius: 4px; display: inline-block; }
.agpt-recaptcha-text{ color: #0b0b0b; font-size: 14px; }
.agpt-recaptcha-badge{ margin-left: auto; width: 84px; height: 40px; background: linear-gradient(135deg,#dbeafe,#93c5fd); border-radius: 6px; }

@media (max-width: 520px){
  .agpt-modal-card{ width: calc(100% - 24px); padding: 18px 16px 22px; }
  .agpt-modal-title{ font-size: 26px; }
  .agpt-primary-btn{ height: 50px; }
}

/* ==========================
   Custom Selects (JS-enhanced)
   ========================== */
.agpt-cs { position: relative; width: 100%; }

/* Hide native while keeping it in DOM for form submissions */
.agpt-cs-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; inset: 0 !important; height: 100% !important; }

.agpt-cs-trigger {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e6eeff;
  background: #ffffff;
  padding: 0 38px 0 12px; /* space for caret */
  font-size: 14px;
  color: #0b0b0b;
  text-align: left;
  cursor: pointer;
}

/* Match brand caret look */
.agpt-cs-trigger {
  background-image: linear-gradient(45deg, transparent 50%, #2563eb 50%), linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.agpt-cs-trigger:focus-visible { outline: 2px solid #cfe0ff; border-color: #cfe0ff; }

.agpt-cs-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1200; /* above cards and other UI */
  background: #ffffff;
  border: 1px solid #e6eeff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none; /* toggled by .is-open */
}

.agpt-cs.is-open > .agpt-cs-list { display: block; }

.agpt-cs-option {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #0b0b0b;
  cursor: pointer;
}
.agpt-cs-option[aria-disabled="true"] { color: #9aa8c7; cursor: not-allowed; }
.agpt-cs-option:hover { background: #f3f7ff; }
.agpt-cs-option[aria-selected="true"],
.agpt-cs-option[aria-selected-temp="true"] { background: #e8f0ff; color: #1e3a8a; }

/* Mobile adjustments: keep within viewport comfortably */
@media (max-width: 640px) {
  .agpt-cs-list { max-height: 50vh; top: calc(100% + 4px); }
  .agpt-cs-trigger { height: 38px; background-position: right 14px center, right 8px center; }
}

/* ==========================
   Typography normalization for consistency
   ========================== */
/* Make all primary form text 16px to match inputs/selects */
.agpt-label,
.agpt-login-text,
.agpt-pay-line,
.agpt-pay-muted,
.agpt-pay-amt,
.agpt-terms,
.agpt-recaptcha-text,
.agpt-cs-trigger,
.agpt-cs-option {
  font-size: 16px;
}

/* Buttons: keep consistent readable size */
.agpt-login-btn,
.agpt-next-btn,
.agpt-price-btn,
.agpt-pay-apply,
.agpt-google-btn {
  font-size: 16px;
}

