/* styles.css */
/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  background-color: #0d1a23;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

/* Hero layout */
.hero {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero-text {
  color: #ffffff;
}

.hero-text .tagline {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 24px;
  display: block;
}

.form-card {
  width: 100%;
  max-width: 520px;
  background-color: #13242f;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.form-card h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Form controls */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label,
legend {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

legend {
  margin-bottom: 4px;
}

.optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.required-hint {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  caret-color: #f47604;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(244, 118, 4, 0.35);
  outline-offset: 2px;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible {
  border-color: #f47604;
  background-color: rgba(244, 118, 4, 0.18);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.toggle-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.05);
}

.toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.toggle-group input[type="radio"],
.toggle-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle-option:hover {
  border-color: #f47604;
  background-color: rgba(244, 118, 4, 0.15);
}

.toggle-group input[type="radio"]:checked + .toggle-option,
.toggle-group input[type="checkbox"]:checked + .toggle-option {
  background: #f47604;
  color: #ffffff;
  border-color: #f47604;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-group input[type="radio"]:focus-visible + .toggle-option,
.toggle-group input[type="checkbox"]:focus-visible + .toggle-option {
  box-shadow: 0 0 0 3px rgba(244, 118, 4, 0.35);
}

.submit-button {
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: #f47604;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(217, 101, 0, 0.35);
  background: #d96500;
}

.submit-button:active {
  transform: translateY(0);
  background: #be5400;
}

a {
  color: #f47604;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #ff8317;
  text-decoration: underline;
}

.error-message {
  min-height: 18px;
  font-size: 0.8125rem;
  color: #c0392b;
}

.form-status {
  min-height: 18px;
  font-size: 0.875rem;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
}

.form-status.status-error {
  color: #ff9a9a;
}

.form-status.status-success {
  color: #6ee7b7;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Desktop refinements */
@media (min-width: 768px) {
  .page {
    padding: 64px 32px;
  }

  .hero {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 48px;
  }

  .hero-text {
    max-width: 420px;
  }
}
