:root {
  --bg: #f4f8fc;
  --card: #ffffff;
  --line: #cfe0f2;
  --text: #10263c;
  --muted: #5f758e;
  --brand: #1185dc;
  --brand-deep: #0b6bb3;
  --success: #0f8f63;
  --error: #c84141;
  --shadow: 0 12px 28px rgba(9, 34, 58, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% -6%, #d4eaff 0%, transparent 45%), radial-gradient(circle at 96% 110%, #ffe0bf 0%, transparent 42%),
    var(--bg);
}

.bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(42px);
  z-index: -1;
  opacity: 0.4;
}

.bg-one {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 40px;
  background: #a2d6ff;
}

.bg-two {
  width: 290px;
  height: 290px;
  right: -110px;
  bottom: 50px;
  background: #ffd1a8;
}

.page {
  width: min(980px, 94vw);
  margin: 30px auto;
  display: grid;
  gap: 14px;
}

.hero {
  background: linear-gradient(135deg, #0d3659 0%, #145286 100%);
  color: #eaf4ff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.hero p {
  margin: 6px 0 0;
  color: #c5ddf2;
}

.card {
  background: var(--card);
  border: 1px solid #e7eef6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 0.85rem;
  color: #2b4a67;
}

label.full {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #a7d6ff;
  border-color: #93caf7;
}

.actions {
  margin-top: 13px;
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.btn.ghost {
  border-color: #cadef0;
  background: #fff;
  color: #1d476a;
}

.status {
  min-height: 1.2em;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--error);
}

.success-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--success);
}

.success-card p {
  margin: 8px 0 0;
}

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

.hidden {
  display: none;
}

@media (max-width: 930px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
  }
}
