/* ==========================================================================
   CSS Resets & Variables
   ========================================================================== */
:root {
  --primary: #11afdb;                 /* Cyan Blue */
  --secondary: #ff3752;               /* Coral Red */
  --primary-hover: #0e93b8;           /* Deeper cyan for hover */
  --primary-bright: #3cc8ef;
  --primary-soft: rgba(17, 175, 219, 0.12);
  --primary-glow: rgba(17, 175, 219, 0.35);
  --secondary-soft: rgba(255, 55, 82, 0.12);

  --bg-dark: #07080b;
  --bg-card: #0f1116;
  --bg-card-2: #13161c;
  --bg-field: rgba(255, 255, 255, 0.035);
  --bg-field-hover: rgba(255, 255, 255, 0.06);

  --text-main: #f4f6f9;
  --text-muted: #98a0ad;
  --text-faint: #646b78;
  --border: #23262e;
  --border-strong: #363a45;
  --border-focus: #11afdb;
  --error-color: #ff3752;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: #2c303a transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  /* Layered brand-tinted atmosphere */
  background-image:
    radial-gradient(1100px circle at 100% -10%, rgba(255, 55, 82, 0.13), transparent 55%),
    radial-gradient(1000px circle at -10% 105%, rgba(17, 175, 219, 0.13), transparent 55%),
    radial-gradient(700px circle at 50% 35%, rgba(17, 175, 219, 0.05), transparent 60%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fine technical grid that fades out toward the bottom */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}

::selection {
  background: rgba(17, 175, 219, 0.4);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2c303a;
  border-radius: 999px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background: #3b404c; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hidden {
  display: none !important;
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.site-header {
  background-color: rgba(7, 8, 11, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 16px 24px;
  width: 100%;
  border-bottom: 1px solid transparent;
  /* Brand hairline */
  border-image: linear-gradient(90deg,
    transparent 0%,
    rgba(17, 175, 219, 0.6) 30%,
    rgba(17, 175, 219, 0.6) 70%,
    transparent 100%) 1;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.site-header .logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  color: #fff;
  background-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(255, 55, 82, 0.3);
}

.btn-login:hover {
  background-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 175, 219, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 16px;
  }
  .site-header .logo img {
    height: 22px;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-login {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  margin-bottom: 52px;
  animation: fadeIn 0.6s ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--primary-soft);
  color: var(--primary-bright);
  border: 1px solid rgba(17, 175, 219, 0.45);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1.8px;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(17, 175, 219, 0.12);
}

/* Live status dot */
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(60, 200, 239, 0.7);
  animation: dotPulse 2s ease-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.15;
  letter-spacing: -0.2px;
  text-wrap: balance;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
  text-wrap: balance;
}

.hero .hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */
.form-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 120px),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  animation: slideUpFade 0.6s var(--ease) backwards;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-section:hover,
.form-section:focus-within {
  border-color: var(--border-strong);
}

.form-section:focus-within {
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(17, 175, 219, 0.18),
    0 0 40px -8px rgba(17, 175, 219, 0.18);
}

/* Staggered animation for form sections */
.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

.form-section h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  /* Brand accent under the heading */
  background-image: linear-gradient(90deg, var(--primary), var(--primary));
  background-size: 72px 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.form-group {
  margin-bottom: 26px;
}
.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 9px;
  color: var(--text-main);
  letter-spacing: 0.15px;
}

.group-label {
  margin-bottom: 4px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ==========================================================================
   Inputs
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
  background: var(--bg-field-hover);
}

input::placeholder, textarea::placeholder {
  color: var(--text-faint);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-field-hover);
  box-shadow: 0 0 0 4px rgba(17, 175, 219, 0.16), 0 0 18px rgba(17, 175, 219, 0.14);
}

/* Validation feedback (only after the user has interacted) */
input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--secondary);
}
input:user-invalid:focus,
textarea:user-invalid:focus,
select:user-invalid:focus {
  box-shadow: 0 0 0 4px rgba(255, 55, 82, 0.16);
}

/* Select arrow */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2398a0ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
select option {
  background: var(--bg-card-2);
  color: #fff;
}

/* Keep browser autofill on-brand */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #171a21 inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* File Upload (native fallback, used if the script below is not present) */
input[type="file"] {
  display: block;
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
input[type="file"]:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(17, 175, 219, 0.16);
}
input[type="file"]::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  transition: background 0.2s;
}
input[type="file"]::file-selector-button:hover {
  background: var(--primary-hover);
}

/* Turkish file picker ("Dosya Seç" / "Dosya seçilmedi") */
.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.file-field:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.file-field:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(17, 175, 219, 0.16);
}
/* Real input stays in place, invisible, covering the whole area */
.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.file-field .file-btn {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  line-height: 1.4;
  transition: background 0.2s;
}
.file-field:hover .file-btn {
  background: var(--primary-hover);
}
.file-field .file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.file-field.has-file .file-name {
  color: var(--text-main);
}

/* ==========================================================================
   Radios & Checkboxes (Grid layout)
   ========================================================================== */
.radio-grid, .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.custom-option {
  display: flex;
  align-items: flex-start;
  padding: 15px 16px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  margin-bottom: 0;
  font-weight: normal;
  font-family: var(--font-body);
}

.custom-option:hover {
  background: var(--bg-field-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Custom radio + checkbox controls */
.custom-option input[type="radio"],
.custom-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-right: 12px;
  flex-shrink: 0;
  cursor: pointer;
  background-color: transparent;
  border: 1.5px solid #4a505d;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.custom-option input[type="checkbox"] {
  border-radius: 6px;
}

.custom-option input[type="radio"] {
  border-radius: 50%;
}

.custom-option input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  box-shadow: 0 0 12px rgba(17, 175, 219, 0.5);
}

.custom-option input[type="radio"]:checked {
  border-color: var(--primary);
  background-image: radial-gradient(circle, var(--primary) 0 38%, transparent 44%);
  box-shadow: 0 0 12px rgba(17, 175, 219, 0.5);
}

.custom-option input[type="radio"]:focus-visible,
.custom-option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

.custom-option span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* ==========================================================================
   Terms Section
   ========================================================================== */
.terms-section {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 30px 30px 26px;
  background: linear-gradient(135deg, rgba(17, 175, 219, 0.045), rgba(255, 255, 255, 0.015) 55%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

.terms-section h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: 1.8px;
}

.terms-section ul {
  list-style-position: outside;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.terms-section li {
  margin-bottom: 10px;
}

.terms-section li:last-child {
  margin-bottom: 0;
}

.terms-section li::marker {
  color: var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-submit {
  display: block;
  width: 100%;
  padding: 19px 24px;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, #2cc2ee 0%, #11afdb 45%, #0c93bf 100%);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-position 0.5s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 28px rgba(17, 175, 219, 0.32);
}

.btn-submit:hover:not(:disabled) {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 14px 36px rgba(17, 175, 219, 0.48);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 16px rgba(17, 175, 219, 0.3);
}

.btn-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Disabled doubles as the "submitting" state: animated stripes */
.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.16) 0 12px,
    rgba(255, 255, 255, 0) 12px 24px
  );
  background-size: 34px 34px;
  animation: stripes 0.9s linear infinite;
}

/* ==========================================================================
   State Panels (Loading, Success)
   ========================================================================== */
.state-panel {
  text-align: center;
  margin: auto 0;
  padding: 64px 32px;
  background:
    radial-gradient(500px circle at 50% 0%, rgba(17, 175, 219, 0.1), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.5s ease;
}

.state-panel h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.state-panel p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(17, 175, 219, 0.45);
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 0 0 0 rgba(17, 175, 219, 0.35), 0 0 32px rgba(17, 175, 219, 0.25);
  animation: ringPulse 2.4s ease-out infinite;
}

/* ==========================================================================
   Error Toast
   ========================================================================== */
.error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: linear-gradient(135deg, #ff4a63, #e02a45);
  color: #fff;
  padding: 16px 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 55, 82, 0.3);
  font-weight: 600;
  z-index: 1000;
  animation: toastIn 0.35s var(--ease) forwards;
}

/* ==========================================================================
   Footer / SDK Slot
   ========================================================================== */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  width: 100%;
  opacity: 0.85;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(60, 200, 239, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(60, 200, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 200, 239, 0); }
}

@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(17, 175, 219, 0.35), 0 0 32px rgba(17, 175, 219, 0.25); }
  70%  { box-shadow: 0 0 0 22px rgba(17, 175, 219, 0), 0 0 32px rgba(17, 175, 219, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(17, 175, 219, 0), 0 0 32px rgba(17, 175, 219, 0.25); }
}

@keyframes stripes {
  to { background-position: 34px 0; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.08rem; }
  .form-section { padding: 28px 18px; border-radius: var(--radius-md); }
  .terms-section { padding: 22px 18px; }
  .main-container { padding: 40px 16px 48px; }
  .radio-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .custom-option { padding: 16px; }
  .state-panel { padding: 44px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Brand overrides (merged from the former inline <style> block in the HTML)
   ========================================================================== */

/* Anton headings */
h1, h2, h3, h4,
.hero h1,
.form-section h2,
.terms-section h3,
.state-panel h2,
#status-title {
  font-family: 'Anton', Impact, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0.5px;
}

/* Anton is condensed: give headings a little more size and air */
.form-section h2 {
  font-size: 1.55rem;
  letter-spacing: 0.7px;
}

.state-panel h2 {
  font-size: 2.3rem;
  letter-spacing: 0.7px;
}

/* Title container with glowing blue border */
.hero h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 20px 40px;
  font-size: 3.1rem;
  line-height: 1.12;
  letter-spacing: 0.8px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(17, 175, 219, 0.16), rgba(17, 175, 219, 0.03) 70%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 6px rgba(17, 175, 219, 0.7),
    0 0 22px rgba(17, 175, 219, 0.45),
    0 0 56px rgba(17, 175, 219, 0.25),
    inset 0 0 20px rgba(17, 175, 219, 0.2);
  text-shadow: 0 0 18px rgba(17, 175, 219, 0.55);
  animation: titleGlow 3.2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    box-shadow:
      0 0 5px rgba(17, 175, 219, 0.6),
      0 0 16px rgba(17, 175, 219, 0.35),
      0 0 38px rgba(17, 175, 219, 0.18),
      inset 0 0 14px rgba(17, 175, 219, 0.14);
  }
  to {
    box-shadow:
      0 0 9px rgba(17, 175, 219, 0.9),
      0 0 28px rgba(17, 175, 219, 0.58),
      0 0 70px rgba(17, 175, 219, 0.34),
      inset 0 0 26px rgba(17, 175, 219, 0.24);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; padding: 14px 20px; }
  .form-section h2 { font-size: 1.35rem; }
  .state-panel h2 { font-size: 1.9rem; }
}

/* Selected options */
.custom-option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(17, 175, 219, 0.16), rgba(17, 175, 219, 0.05));
  box-shadow: 0 0 0 1px var(--primary) inset, 0 6px 18px -6px rgba(17, 175, 219, 0.35);
}

/* Links */
.form-group a {
  color: var(--secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.form-group a:hover {
  color: var(--primary) !important;
}
