/* ── Reset & Base ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f7;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  max-height: 48px;
  width: auto;
}

/* ── Quick Links Bar ─────────────────────────────────── */
.quick-links-bar {
  background: #1a0a2e;
  padding: 6px 0;
}

.quick-links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.quick-links-bar a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.quick-links-bar a:hover {
  color: #fff;
}

.quick-icon {
  font-size: 0.7rem;
}

/* ── Navigation ──────────────────────────────────────── */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a0a2e;
  letter-spacing: 1px;
}

.logo-u {
  color: #6b2fa0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #444;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover {
  background: #f0ecf5;
  color: #1a0a2e;
}

.nav-apply-btn {
  background: #4a1d96 !important;
  color: #fff !important;
  padding: 8px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-apply-btn:hover {
  background: #3a1578 !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #1a0a2e;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ── Main Content ────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a0a2e;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Form Card ───────────────────────────────────────── */
.form-card {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1b69 100%);
  border-radius: 16px;
  padding: 36px 32px 40px;
  box-shadow: 0 20px 60px rgba(26, 10, 46, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.required-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin-bottom: 16px;
  padding-left: 2px;
}

.field-error {
  color: #ff8a95;
  font-size: 0.75rem;
  margin-top: 4px;
  padding-left: 2px;
}

.zip-status {
  font-size: 0.75rem;
  margin-top: 4px;
  padding-left: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.zip-status.zip-found {
  color: #7ddfb0;
}

.form-group label {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  padding-left: 2px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  outline: none;
  transition: box-shadow 0.2s;
}

.form-group input::placeholder {
  color: #999;
}

.form-group select:invalid {
  color: #999;
}

.form-group select option {
  color: #333;
}

.form-group select option[disabled] {
  color: #999;
}

.form-group input:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(106, 47, 160, 0.35);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  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='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Validation styling */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not([data-touched]) {
  box-shadow: none;
}

.form-group input.touched:invalid,
.form-group select.touched:invalid {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.5);
}

/* ── Legal Links & Consent ───────────────────────────── */
.form-legal-link {
  color: #c4b5fd;
  text-decoration: underline;
  transition: color 0.2s;
}

.form-legal-link:hover {
  color: #e9d5ff;
}

/* ── Submit Button ───────────────────────────────────── */
.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: #4a1d96;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background: #3a1578;
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Form Message ────────────────────────────────────── */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ff8a95;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.form-message.success {
  background: rgba(40, 167, 69, 0.15);
  color: #7ddfb0;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ── Success Card ────────────────────────────────────── */
.success-card {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1b69 100%);
  border-radius: 16px;
  padding: 60px 32px;
  box-shadow: 0 20px 60px rgba(26, 10, 46, 0.35);
  text-align: center;
  color: #fff;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(40, 167, 69, 0.2);
  border: 2px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #7ddfb0;
}

.success-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: #1a0a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  padding: 24px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 24px;
    display: block;
    border-radius: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .quick-links-container {
    justify-content: center;
  }

  .form-card {
    padding: 28px 20px 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-title {
    font-size: 1.4rem;
  }
}
