/* ================================================================
   signup2.css — Custom styles for the LossPay signup2-web base.
   All classes prefixed with s2- to avoid collisions.
   ================================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Page background gradient */
  --s2-bg-from: #F8FAFC;
  --s2-bg-to: #F1F5F9;

  /* Text colors */
  --s2-text-dark: #0B1F33;
  --s2-text-muted: #5B6B7C;
  --s2-text-amber-dark: #92400E;

  /* Accent colors */
  --s2-accent-blue: #2F5BFF;
  --s2-amber: #F59E0B;
  --s2-amber-dark: #D97706;
  --s2-teal: #0D9488;
  --s2-teal-light: #14B8A6;
  --s2-blue-600: #2563EB;
  --s2-indigo: #4F46E5;

  /* Card gradient endpoints */
  --s2-amber-from: #FFFBEB;
  --s2-amber-to: #FEF3C7;
  --s2-blue-from: #EFF6FF;
  --s2-blue-to: #F8FAFC;
  --s2-teal-from: #F0FDFA;
  --s2-teal-to: #F8FAFC;

  /* Typography */
  --s2-font-heading: 'Manrope', sans-serif;
  --s2-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Page background ---------- */
.s2-page-bg {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--s2-bg-from) 0%, var(--s2-bg-to) 100%);
}

/* ---------- Sticky header ---------- */
.s2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.s2-header-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s2-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.s2-logo-img {
  height: 32px;
  width: auto;
}

.s2-header-tagline {
  font-family: var(--s2-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--s2-text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Content container ---------- */
.s2-content {
  max-width: 896px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

/* ---------- Typography ---------- */
.s2-h1 {
  font-family: var(--s2-font-heading);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.9px;
  color: var(--s2-text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.s2-h2 {
  font-family: var(--s2-font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--s2-text-dark);
  line-height: 32px;
  margin-bottom: 0;
}

.s2-h3 {
  font-family: var(--s2-font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--s2-text-dark);
  line-height: 24px;
  margin-bottom: 0;
}

.s2-text-muted {
  font-family: var(--s2-font-body);
  font-size: 16px;
  color: var(--s2-text-muted);
  line-height: 26px;
}

.s2-text-sm {
  font-size: 14px;
  line-height: 22px;
}

/* ---------- Hero section ---------- */
.s2-hero {
  padding: 0 0 48px;
}

.s2-hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 29.25px;
}

/* ---------- Badge ---------- */
.s2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: var(--s2-accent-blue);
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  font-family: var(--s2-font-body);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.s2-badge i {
  font-size: 16px;
}

/* ---------- Cards (base) ---------- */
.s2-card {
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ---------- Card variants ---------- */
.s2-card-amber {
  background: linear-gradient(135deg, var(--s2-amber-from) 0%, var(--s2-amber-to) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.s2-card-blue {
  background: linear-gradient(135deg, var(--s2-blue-from) 0%, var(--s2-blue-to) 100%);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--s2-accent-blue);
}

.s2-card-teal {
  background: linear-gradient(135deg, var(--s2-teal-from) 0%, var(--s2-teal-to) 100%);
  border: 1px solid #99F6E4;
  border-left: 4px solid var(--s2-teal);
}

.s2-card-white {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

.s2-card-amber-border {
  background: #FFFFFF;
  border: 2px solid rgba(245, 158, 11, 0.35);
}

.s2-card-ack {
  background: linear-gradient(135deg, var(--s2-blue-from) 0%, var(--s2-blue-to) 100%);
  border: 2px solid rgba(47, 91, 255, 0.3);
  border-left: 4px solid var(--s2-accent-blue);
  padding: 0;
}

/* Ack card header band */
.s2-ack-header {
  background: linear-gradient(to right, #EEF2FF, #E0E7FF);
  padding: 20px 32px;
  border-bottom: 1px solid rgba(47, 91, 255, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Ack card body */
.s2-ack-body {
  padding: 32px;
}

/* Decorative circle for ack card (blue-tinted) */
.s2-ack-decorative-circle {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(47, 91, 255, 0.05);
  pointer-events: none;
}

/* ---------- Decorative circle (amber card top-right, quarter-circle) ---------- */
.s2-card-decorative-circle {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.10);
  pointer-events: none;
}

.s2-card-decorative-circle-teal {
  background: rgba(13, 148, 136, 0.08);
}

/* ---------- Icon circles ---------- */
.s2-icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.s2-icon-circle-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.s2-icon-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
}

.s2-icon-blue {
  background: linear-gradient(135deg, #2F5BFF 0%, #4F46E5 100%);
  color: #fff;
}

.s2-icon-teal {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #fff;
}

.s2-icon-purple {
  background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
  color: #7C3AED;
}

.s2-icon-circle-lg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  font-size: 22px;
}

.s2-icon-amber-light {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: var(--s2-text-amber-dark);
}

.s2-icon-slate {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #fff;
}

/* ---------- Sub-cards (VIN section) ---------- */
.s2-sub-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.s2-sub-card {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 12px;
  padding: 16px;
}

/* ---------- Tip box ---------- */
.s2-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  font-family: var(--s2-font-body);
  font-size: 14px;
  color: var(--s2-text-muted);
  line-height: 22px;
}

.s2-tip-icon {
  color: var(--s2-amber);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- Callout (Key Distinction) ---------- */
.s2-callout {
  background: #EFF6FF;
  border-left: 4px solid #60A5FA;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-top: 16px;
}

.s2-callout-icon {
  color: #3B82F6;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.s2-callout-title {
  font-family: var(--s2-font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--s2-text-dark);
}

/* ---------- Exclusion grid ---------- */
.s2-exclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.s2-exclusion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FFFBEB;
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 10px;
  font-family: var(--s2-font-body);
  font-size: 15px;
  color: var(--s2-text-dark);
  line-height: 1.4;
}

.s2-exclusion-icon-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Acknowledgements ---------- */
.s2-ack-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s2-ack-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--s2-font-body);
  font-size: 16px;
  color: var(--s2-text-dark);
  line-height: 24px;
  transition: all 0.15s ease;
  margin: 0;
}

.s2-ack-label:hover {
  border-color: #CBD5E1;
}

/* Custom checkbox */
.s2-acknowledgement-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin-top: 3px;
  transition: all 0.15s ease;
  position: relative;
}

.s2-acknowledgement-checkbox:checked {
  background: var(--s2-accent-blue);
  border-color: var(--s2-accent-blue);
}

.s2-acknowledgement-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.s2-acknowledgement-checkbox:focus-visible {
  outline: 2px solid var(--s2-accent-blue);
  outline-offset: 2px;
}

/* Progress bar */
.s2-progress-bar-track {
  width: 100%;
  height: 10px;
  background: #E0E7FF;
  border-radius: 9999px;
  overflow: hidden;
}

.s2-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s2-accent-blue) 0%, var(--s2-indigo) 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Ack footer */
.s2-ack-footer {
  padding-top: 16px;
  margin-top: 8px;
}

.s2-ack-completed-label {
  font-family: var(--s2-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--s2-text-muted);
}

/* Progress counter pill */
.s2-progress-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: #E0E7FF;
  color: var(--s2-accent-blue);
  border-radius: 9999px;
  font-family: var(--s2-font-body);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Submit section (separate from ack card) ---------- */
.s2-submit-section {
  text-align: center;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---------- Submit button ---------- */
.s2-btn-submit {
  display: block;
  width: 100%;
  padding: 24px 40px;
  border: none;
  border-radius: 12px;
  font-family: var(--s2-font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.s2-btn-submit:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
}

.s2-btn-submit:not(:disabled) {
  background: linear-gradient(135deg, var(--s2-accent-blue) 0%, var(--s2-indigo) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 91, 255, 0.35);
}

.s2-btn-submit:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(47, 91, 255, 0.45);
  transform: translateY(-1px);
}

.s2-btn-submit:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.3);
}

/* Helper text */
.s2-helper-text {
  font-family: var(--s2-font-body);
  font-size: 14px;
  color: var(--s2-text-muted);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.s2-footer {
  border-top: 1px solid #E2E8F0;
  padding-top: 40px;
  margin-top: 16px;
}

.s2-footer-brand {
  text-align: center;
  margin-bottom: 32px;
}

.s2-footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 8px;
  opacity: 0.7;
}

.s2-footer-disclosures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.s2-footer-section {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 20px;
}

.s2-footer-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.s2-footer-heading {
  font-family: var(--s2-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--s2-text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.s2-footer-text {
  font-family: var(--s2-font-body);
  font-size: 13px;
  color: var(--s2-text-muted);
  line-height: 21px;
  margin-bottom: 0;
}

.s2-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 0 48px;
  border-top: 1px solid #E2E8F0;
}

.s2-footer-link {
  font-family: var(--s2-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--s2-accent-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.s2-footer-link:hover {
  color: var(--s2-accent-blue);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .s2-content {
    padding: 40px 16px 32px;
  }

  .s2-header-inner {
    padding: 12px 16px;
  }

  .s2-h1 {
    font-size: 28px;
    letter-spacing: -0.7px;
  }

  .s2-h2 {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .s2-text-muted {
    font-size: 15px;
    line-height: 24px;
  }

  .s2-hero-subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .s2-card {
    padding: 24px;
    border-radius: 14px;
  }

  .s2-hero {
    padding: 0 0 32px;
  }

  .s2-sub-card-row {
    grid-template-columns: 1fr;
  }

  .s2-exclusion-grid {
    grid-template-columns: 1fr;
  }

  .s2-badge {
    font-size: 13px;
    padding: 6px 14px;
  }

  .s2-ack-header {
    padding: 16px 24px;
  }

  .s2-ack-body {
    padding: 24px;
  }

  .s2-ack-label {
    font-size: 15px;
    line-height: 24px;
    gap: 12px;
    padding: 14px;
  }

  .s2-btn-submit {
    font-size: 16px;
    padding: 18px 24px;
  }

  .s2-header-tagline {
    font-size: 12px;
  }

  .s2-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .s2-h1 {
    font-size: 24px;
  }

  .s2-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .s2-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    font-size: 18px;
  }

  .s2-exclusion-item {
    font-size: 14px;
    padding: 10px 12px;
  }
}
