/* CyberSecure readiness intake page styles */

.cs-intake-page {
  background: radial-gradient(circle at 20% 20%, rgba(44, 125, 246, 0.15), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(95, 213, 255, 0.12), transparent 40%),
              var(--za-dark-bg);
  min-height: 100vh;
  /* 72px clears the fixed .nav header from site.css */
  padding: calc(72px + 2.5rem) 1rem 3rem;
}

.cs-intake-wrapper {
  max-width: 980px;
  margin: 0 auto;
  color: #f5f7fb;
}

.cs-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(12, 18, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.8;
  cursor: pointer;
  transition: border 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.cs-stepper-item.active {
  border-color: rgba(95, 213, 255, 0.65);
  box-shadow: 0 12px 30px rgba(95, 213, 255, 0.12);
  opacity: 1;
}

.cs-stepper-item.completed {
  border-color: rgba(46, 213, 115, 0.4);
  opacity: 0.95;
}

.cs-stepper-item:focus-visible {
  outline: 2px solid rgba(95, 213, 255, 0.7);
  outline-offset: 2px;
}

.cs-step-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c7df6, #5fd5ff);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #02050f;
}

.cs-step-label {
  font-weight: 600;
  margin: 0;
}

.cs-step-hint {
  margin: 0;
  opacity: 0.7;
  font-size: 0.82rem;
}

.cs-step-counter {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 0.85rem;
  opacity: 0.8;
}

.cs-intake-hero {
  margin-bottom: 1.8rem;
  text-align: left;
}

.cs-intake-hero h1 {
  font-family: var(--za-font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.cs-intake-hero p {
  max-width: 700px;
  font-size: 0.98rem;
  opacity: 0.9;
}

.cs-intake-form {
  background: radial-gradient(circle at top left, rgba(80, 140, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(20, 230, 190, 0.08), transparent 55%),
              #050816;
  border-radius: 18px;
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}

.cs-success-state {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.12), rgba(95, 213, 255, 0.14)), rgba(6, 12, 36, 0.92);
  border: 1px solid rgba(95, 213, 255, 0.5);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

.cs-success-state h2 {
  font-family: var(--za-font-display);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  margin: 0 0 0.4rem;
}

.cs-success-state p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.cs-success-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #8fffc8;
  margin-bottom: 0.35rem;
}

.cs-success-body {
  margin-top: 0.3rem;
}

.cs-success-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c7df6, #5fd5ff);
  color: #02050f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(22, 119, 255, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cs-success-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(22, 119, 255, 0.55);
}

.cs-success-note {
  opacity: 0.78;
  font-size: 0.9rem;
}

.cs-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.3rem 1.3rem;
}

.cs-fieldset legend {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.4rem;
  opacity: 0.9;
}

.cs-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.cs-field span {
  opacity: 0.9;
}

.cs-intake-form input[type="text"],
.cs-intake-form input[type="email"],
.cs-intake-form input[type="tel"],
.cs-intake-form input[type="url"],
.cs-intake-form select,
.cs-intake-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 10, 30, 0.95);
  color: #f5f7fb;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cs-intake-form input::placeholder,
.cs-intake-form textarea::placeholder {
  opacity: 0.6;
  font-size: 0.85rem;
}

.cs-intake-form input:focus,
.cs-intake-form select:focus,
.cs-intake-form textarea:focus {
  border-color: rgba(104, 163, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(104, 163, 255, 0.6);
  background: rgba(6, 14, 40, 1);
}

.cs-intake-form textarea {
  resize: vertical;
  min-height: 80px;
}

.cs-grid {
  display: grid;
  gap: 1rem;
}

.cs-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cs-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cs-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.35rem 1.25rem;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.88rem;
}

.cs-checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  opacity: 0.9;
}

.cs-checkbox-grid input[type="checkbox"] {
  margin-top: 0.15rem;
}

.cs-checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cs-step {
  display: none;
}

.cs-step.active {
  display: block;
}

.cs-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

.cs-primary-btn,
.cs-secondary-btn {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.cs-primary-btn {
  background: linear-gradient(135deg, #2c7df6, #5fd5ff);
  color: #02050f;
  border-color: rgba(95, 213, 255, 0.5);
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.4);
}

.cs-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(22, 119, 255, 0.5);
}

.cs-secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.12);
}

.cs-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 213, 255, 0.4);
}

.cs-primary-btn:focus-visible,
.cs-secondary-btn:focus-visible {
  outline: 2px solid rgba(95, 213, 255, 0.7);
  outline-offset: 2px;
}

.cs-section-help {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  opacity: 0.75;
}

.cs-section-subtitle {
  font-size: 0.88rem;
  margin: 0.25rem 0 0.4rem;
  opacity: 0.9;
}

.cs-submit-btn {
  width: min(100%, 520px);
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2c7df6, #5fd5ff);
  color: #02050f; /* dark text for WCAG AA on the light cyan gradient end */
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cs-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(22, 119, 255, 0.55);
  filter: brightness(1.05);
}

.cs-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(22, 119, 255, 0.4);
  filter: brightness(0.98);
}

.cs-footnote {
  margin: 0.6rem auto 0;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
  max-width: 720px;
}

.cs-form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.cs-alert {
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-align: center;
  width: min(100%, 520px);
}

.cs-alert-success {
  background: rgba(46, 213, 115, 0.1);
  color: #7fffb2;
  border: 1px solid rgba(46, 213, 115, 0.5);
}

.cs-alert-error {
  background: rgba(255, 99, 132, 0.08);
  color: #ff9fb3;
  border: 1px solid rgba(255, 99, 132, 0.5);
}

@media (max-width: 600px) {
  .cs-intake-page {
    padding: calc(72px + 1.8rem) 0.75rem 2.25rem;
  }

  .cs-intake-form {
    padding: 1.3rem 1.1rem 1.6rem;
  }
}
