:root {
  --navy: #0b1538;
  --navy-deep: #050b22;
  --royal: #1947ba;
  --royal-light: #2f5edc;
  --teal: #1ec1e0;
  --red: #e23934;
  --gold: #fbbf24;
  --text: #e8eaef;
  --text-dim: rgba(255,255,255,0.7);
  --text-mute: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.2);
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.07);
  --danger: #e23934;
  --success: #22c55e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

/* HTML hidden attribute must always win over any display rule */
[hidden] { display: none !important; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: #5cd8ef; }

h1, h2, h3 { color: #fff; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; }
p { margin: 0 0 0.75rem; }
.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 38rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* ------- Header / Footer ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.header-logo img { display: block; height: 38px; width: auto; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background: var(--royal);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .15s, transform .15s;
}
.header-call:hover { background: var(--royal-light); color: #fff; transform: translateY(-1px); }
.header-call svg { flex-shrink: 0; }

.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo { display: block; height: 32px; width: auto; margin-bottom: 0.75rem; opacity: 0.9; }
.footer-tagline { color: var(--text-mute); font-size: 0.92rem; margin: 0; }
.footer-meta { font-size: 0.92rem; color: var(--text-mute); text-align: right; }
.footer-meta p { margin: 0 0 0.25rem; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, opacity .15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--royal);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--royal-light);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-block { width: 100%; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 1.1rem; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------- Submit page ------- */
.submit-hero {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 30% 0%, rgba(30, 193, 224, 0.12) 0%, transparent 60%);
}

.submit-section {
  padding: 1rem 0 4rem;
}

.submit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .submit-grid { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.form-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.card-help {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.field .req { color: var(--red); margin-left: 0.15rem; }
.field .opt { color: var(--text-mute); font-weight: 400; font-size: 0.78rem; text-transform: lowercase; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 193, 224, 0.18);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-mute);
}
.field textarea { resize: vertical; min-height: 80px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* Dropzone */
.dropzone {
  display: block;
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: rgba(0,0,0,0.15);
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--teal);
  background: rgba(30, 193, 224, 0.06);
}
.dropzone input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}
.dropzone-empty { color: var(--text-dim); }
.dropzone-empty svg { color: var(--teal); margin-bottom: 0.5rem; }
.dropzone-text { margin: 0.5rem 0 0.2rem; font-size: 1rem; color: #fff; }
.dropzone-text strong { color: var(--teal); }
.dropzone-sub { margin: 0; font-size: 0.85rem; color: var(--text-mute); }

.dropzone-filled {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}
.dropzone-filled svg { color: var(--teal); flex-shrink: 0; }
.file-meta { flex: 1; min-width: 0; }
.file-name {
  display: block;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  display: block;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.file-replace {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.file-replace:hover { border-color: var(--teal); color: var(--teal); }

/* Amount field */
.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
/* $ - looks like part of the typed amount, with clear breathing room */
.amount-currency {
  position: absolute;
  left: 1rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}
/* USD - clearly a secondary unit label: pill with subtle background + tinted border */
.amount-suffix {
  position: absolute;
  right: 0.85rem;
  color: var(--teal);
  background: rgba(30, 193, 224, 0.12);
  border: 1px solid rgba(30, 193, 224, 0.25);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
  text-transform: uppercase;
}
.amount-input-wrap input {
  padding-left: 2.25rem !important;
  padding-right: 4.25rem !important;
  font-size: 1.25rem;
  font-weight: 600;
}
/* Kill browser number-input spinners so they don't collide with the USD label */
.amount-input-wrap input[type=number]::-webkit-inner-spin-button,
.amount-input-wrap input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.amount-input-wrap input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Stripe Card Element */
.card-element {
  padding: 0.95rem 1rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.card-element.StripeElement--focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 193, 224, 0.18);
}
.card-element.StripeElement--invalid {
  border-color: var(--red);
}
.card-errors {
  margin-top: 0.6rem;
  color: var(--red);
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* Form-level error */
.form-error {
  background: rgba(226, 57, 52, 0.1);
  border: 1px solid rgba(226, 57, 52, 0.4);
  color: #ffb7b5;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-fine-print {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
}

/* Aside */
.submit-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.aside-card h3 { margin-bottom: 0.85rem; }

.next-steps { margin: 0; padding-left: 1.1rem; color: var(--text-dim); font-size: 0.94rem; }
.next-steps li { margin-bottom: 0.65rem; line-height: 1.5; }
.next-steps li:last-child { margin-bottom: 0; }
.next-steps strong { color: #fff; }

.aside-trust .trust-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.aside-trust .trust-row svg { color: var(--teal); flex-shrink: 0; }
.aside-trust .trust-row + .trust-row { border-top: 1px solid var(--border); }

.aside-contact .aside-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.3rem;
}
.aside-contact .aside-phone:hover { color: var(--teal); }

/* ------- Success page ------- */
.success-section {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  min-height: 70vh;
}
.success-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}
.success-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-card h1 { margin-bottom: 0.75rem; }
.success-card .lead { margin: 0 auto 2rem; }

.success-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-strong);
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: left;
}
.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 0.25rem;
}
.meta-value { font-size: 1rem; font-weight: 600; color: #fff; }
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}
.status-pending { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-paid { background: rgba(34, 197, 94, 0.18); color: var(--success); }
.status-failed { background: rgba(226, 57, 52, 0.18); color: var(--red); }
.status-refunded { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

.success-next { text-align: left; margin-bottom: 2rem; }
.success-next h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.75rem; }
.success-next ul { margin: 0; padding-left: 1.1rem; color: var(--text-dim); }
.success-next li { margin-bottom: 0.5rem; }
.success-next strong { color: #fff; }

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
