@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #eff6ff;
  --teal: #0891b2;
  --teal-dark: #0e7490;
  --teal-soft: #ecfeff;
  --gold: #c9922a;
  --rose: #a61e4d;
  --bg: linear-gradient(180deg, #e8eef8 0%, #f1f5f9 120px, #f1f5f9 100%);
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 12px 32px -8px rgba(15, 23, 42, 0.1);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #f1f5f9;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

/* ShareThis sticky bar — above page content, below fetch overlay */
#st-1,
#st-2,
.st-sticky-sharebuttons {
  z-index: 40 !important;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 45%, #2563eb 75%, #3b82f6 100%);
  color: #fff;
  padding: 1.5rem 1.25rem 2.75rem;
  text-align: center;
  position: relative;
}

.hero--cyan {
  background: linear-gradient(135deg, #0e7490 0%, var(--teal-dark) 40%, var(--teal) 70%, #22d3ee 100%);
}

.hero--compact {
  padding: 0.85rem 1rem 2.25rem;
}

.hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero__title-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__title-main i {
  font-size: 0.85em;
  opacity: 0.9;
}

.hero__title-meta {
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .hero__title-meta {
    white-space: normal;
    width: 100%;
    text-align: center;
    font-size: 0.92em;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-badge--light {
  background: rgba(255, 255, 255, 0.22);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
  font-weight: 500;
}

.hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pill--policy { background: rgba(255, 255, 255, 0.24); }
.pill--suffix { background: rgba(255, 255, 255, 0.14); }

.main {
  flex: 1;
  padding: 0 1rem 2rem;
  margin-top: -0.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.main--wide {
  max-width: 920px;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--form {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--rose), var(--gold), var(--primary-dark)) 1;
}

.card--report {
  border-top: 3px solid var(--teal);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--primary-soft);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), #dbeafe);
  color: var(--primary);
  font-size: 1.1rem;
}

.card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.field label i {
  color: var(--primary);
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap select,
.field input,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap--select select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.field input:focus,
.field select:focus,
.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.captcha-box {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.captcha-row img {
  border-radius: 8px;
  height: 46px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.hint {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

.hint i {
  margin-top: 0.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active { transform: scale(0.98); }

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.9rem;
}

#bondForm {
  padding-bottom: 0.25rem;
}

.btn-primary,
.btn-submit {
  background: linear-gradient(135deg, #2563eb, var(--primary) 50%, #1e40af);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
  font-size: 1rem;
}

.btn-primary:hover,
.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

.btn-submit i { font-size: 1.05rem; }

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-dark {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.btn-outline {
  background: #fff;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-soft);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert i { flex-shrink: 0; margin-top: 0.1rem; }

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.alert-warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  margin-bottom: 1rem;
}

.alert-warn a { color: #b45309; font-weight: 700; }

.alert-success {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-left: 4px solid var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfeff 0%, #d1fae5 100%);
  border: 1px solid #5eead4;
}

.success-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #10b981);
  color: #fff;
  font-size: 1.25rem;
}

.success-banner strong {
  display: block;
  font-size: 0.95rem;
  color: #0f766e;
}

.success-banner p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #115e59;
}

body.is-fetching { overflow: hidden; }

.captcha-row img.is-loading {
  opacity: 0.35;
  filter: grayscale(0.4);
}

.fetch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.fetch-overlay[hidden] {
  display: none !important;
}

.fetch-panel {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border);
}

.fetch-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  border-right-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.fetch-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.fetch-step {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  min-height: 2.6em;
  line-height: 1.35;
}

.fetch-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.fetch-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #2563eb, var(--teal));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.fetch-timer {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fetch-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.fetch-note strong {
  color: var(--primary-dark);
}

@keyframes spin { to { transform: rotate(360deg); } }

.seo-section {
  margin-top: 1.5rem;
  padding: 1.25rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.seo-section__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}

.seo-section__lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.seo-section__steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.seo-section__steps li { margin-bottom: 0.35rem; }

.seo-faq {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fafbfc;
}

.seo-faq summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.seo-faq p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.footer-note a {
  color: var(--primary-dark);
  font-weight: 600;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  min-height: 68px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  text-align: center;
  line-height: 1.25;
}

.action-btn i { font-size: 1.2rem; }

.action-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  opacity: 0.95;
}

.action-btn--pdf { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
.action-btn--save { background: linear-gradient(135deg, #0d9488, #0f766e); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); }
.action-btn--tab { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

@media (min-width: 520px) {
  .action-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .action-btn {
    min-height: 72px;
    font-size: 0.8rem;
  }
}

.report-preview-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-preview-label i { color: var(--teal); }

.report-frame {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.frame-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  transition: opacity 0.3s;
}

.frame-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.frame-loader__spin {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.frame-loader p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.report-frame iframe {
  width: 100%;
  height: 80vh;
  min-height: 560px;
  border: none;
  display: block;
  background: #fff;
}

.report-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  transition: background 0.2s;
}

.back-link:hover {
  background: #dbeafe;
  text-decoration: none;
}

.report-footer small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.fullscreen-body {
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}

.fullscreen-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.fullscreen-toolbar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.fs-btn svg {
  width: 16px;
  height: 16px;
}

.fs-btn--print {
  background: var(--primary);
  color: #fff;
}

.fs-btn--print:hover { background: var(--primary-dark); }

.fs-btn--close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.fs-btn--close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  max-width: 92%;
  padding: 0.85rem 1.2rem;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  box-shadow: var(--shadow);
  transition: transform 0.25s, opacity 0.25s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ad-wrap {
  max-width: 640px;
  margin: 0 auto 14px;
  padding: 0 12px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.ad-wrap--below-hero {
  position: relative;
  z-index: 2;
  margin-top: -1.25rem;
  margin-bottom: 0.5rem;
}

.ad-wrap--after-success {
  margin: 0 0 1rem;
  padding: 0;
  max-width: none;
}

.ad-wrap--before-actions {
  margin: 1rem 0 1.25rem;
  padding: 0;
  max-width: none;
}

.ad-wrap--in-form {
  margin: 16px 0 20px;
  padding: 0;
  max-width: none;
}

/* Link ads — compact text links, space before action buttons */
.adsbygoogle--link {
  overflow: hidden;
}

.ad-wrap--in-form + .btn-submit,
.ad-wrap--before-actions + .action-grid {
  margin-top: 4px;
}

@media (min-width: 600px) {
  .main { padding: 0 1.5rem 2.5rem; }
  .card { padding: 1.75rem; }
}

@media print {
  .ad-wrap,
  .adsbygoogle {
    display: none !important;
  }
}
