@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #070913;
  --surface: rgba(16, 21, 40, 0.82);
  --surface-2: rgba(10, 14, 29, 0.92);
  --line: rgba(136, 150, 255, 0.28);
  --text: #f4f7ff;
  --muted: #b4bcdc;
  --primary: #6d56ff;
  --primary-2: #19ccff;
  --accent: #19ccff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.stresstest-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  min-height: calc(100vh - 70px);
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 12%, rgba(95, 129, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(255, 97, 156, 0.16), transparent 28%),
    linear-gradient(150deg, #070c18 0%, #0b1428 50%, #0e1e37 100%);
}

.stress-start-banner {
  max-width: 1360px;
  margin: 0 auto 14px auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(137, 169, 255, 0.22), rgba(255, 97, 156, 0.18));
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  color: #f6f9ff;
}

.start-label {
  font-weight: 700;
  opacity: 0.9;
}

.start-time {
  font-size: 1.05rem;
  font-weight: 700;
}

.start-countdown {
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  color: #f4e8ff;
}

.stress-shell {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(14px, 2vw, 24px);
}

.stress-hero,
.stress-form-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.stress-hero {
  min-height: 68vh;
  padding: clamp(20px, 3vw, 44px);
  background:
    linear-gradient(150deg, rgba(110, 126, 255, 0.2), rgba(110, 126, 255, 0) 38%),
    linear-gradient(180deg, #111b34, #13213f 60%, #14274a);
  display: grid;
  align-content: center;
  gap: 16px;
}

.stress-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 96, 150, 0.14);
  border: 1px solid rgba(255, 96, 150, 0.38);
  color: #ffd6e8;
  font-size: 0.83rem;
  font-weight: 700;
}

.stress-hero h1 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  line-height: 1.08;
  max-width: 16.5ch;
}

.stress-lead {
  margin: 0;
  color: #dce7ff;
  max-width: 64ch;
  line-height: 1.55;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.info-title {
  margin: 6px 0 0 0;
  color: #f0f4ff;
  font-size: 1.2rem;
}

.stress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.stress-list li {
  border-radius: 12px;
  border: 1px solid rgba(136, 164, 255, 0.34);
  background: rgba(98, 126, 224, 0.14);
  padding: 11px 12px;
  color: #eef3ff;
}

.stress-list a {
  color: #9fc2ff;
  font-weight: 700;
  text-decoration: none;
}

.stress-list a:hover {
  text-decoration: underline;
}

.stress-form-card {
  padding: clamp(18px, 2vw, 24px);
  background: linear-gradient(180deg, #0f182d, #141f38);
  color: #eaf0ff;
  position: sticky;
  top: 92px;
}

.stress-form-card h2 {
  margin: 0 0 10px 0;
  color: #f3f6ff;
}

.cooldown-note {
  margin: 0 0 10px 0;
  color: #b8caed;
  font-size: 0.9rem;
}

.stress-form {
  display: grid;
  gap: 10px;
}

.stress-form label,
.stress-form legend {
  color: #d3e0ff;
  font-weight: 700;
}

.stress-form input[type="text"],
.stress-form input[type="email"] {
  width: 100%;
  border: 1px solid #3f5687;
  border-radius: 11px;
  padding: 12px;
  background: #101a31;
  color: #edf3ff;
}

.stress-form input[type="text"]:focus,
.stress-form input[type="email"]:focus {
  outline: none;
  border-color: #89a9ff;
  box-shadow: 0 0 0 3px rgba(137, 169, 255, 0.25);
}

.stress-form fieldset {
  border: 1px solid #465f92;
  border-radius: 11px;
  padding: 10px 12px;
  background: #111d36;
}

.stress-form .form-group {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.stress-form legend {
  margin: 0;
  padding: 0 5px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #eef4ff;
  font-weight: 600;
}

.checkbox-line:last-child {
  margin-bottom: 0;
}

.stress-submit {
  border: none;
  border-radius: 12px;
  margin-top: 5px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #6f90ff, #8f5dff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(98, 110, 255, 0.34);
}

.stress-submit:hover {
  transform: translateY(-1px);
}

.stress-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.cf-turnstile {
  display: block;
  min-height: 65px;
  margin: 0 auto;
}

.stress-consent {
  margin: 0;
  color: #a9bbdf;
  font-size: 0.84rem;
}

.stress-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stress-alert-success {
  background: rgba(45, 196, 117, 0.16);
  border: 1px solid rgba(45, 196, 117, 0.34);
  color: #defde9;
}

.stress-alert-warning {
  background: rgba(241, 176, 46, 0.2);
  border: 1px solid rgba(241, 176, 46, 0.38);
  color: #fff4d9;
}

.stress-alert-error {
  background: rgba(255, 92, 120, 0.2);
  border: 1px solid rgba(255, 92, 120, 0.38);
  color: #ffe8ee;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .stress-shell {
    grid-template-columns: 1fr;
  }

  .stress-hero {
    min-height: auto;
  }

  .stress-form-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .stresstest-page {
    padding: 10px;
  }

  .stress-start-banner {
    border-radius: 12px;
  }

  .stress-hero,
  .stress-form-card {
    border-radius: 14px;
    padding: 15px;
  }
}

/* Remove global footer spacing on this page */
.site-footer {
  margin-top: 0 !important;
}
