@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3f6f2;
  --bg-soft: #eaf1ec;
  --surface: #ffffff;
  --surface-elevated: #fefdf9;
  --text: #16343b;
  --muted: #61747a;
  --line: #d2dde0;

  --brand: #0f766e;
  --brand-strong: #0b5b55;
  --brand-ink: #ffffff;

  --accent: #ea580c;
  --accent-soft: #ffd9c1;

  --ok: #15803d;
  --ok-soft: #e8f8ec;
  --warn: #b45309;
  --warn-soft: #fff2e0;
  --danger: #b91c1c;
  --danger-soft: #ffe7e7;

  --shadow-soft: 0 20px 50px rgba(15, 118, 110, 0.12);
  --shadow-strong: 0 24px 60px rgba(22, 52, 59, 0.18);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -6%, rgba(15, 118, 110, 0.2) 0%, rgba(15, 118, 110, 0) 34%),
    radial-gradient(circle at 90% 8%, rgba(234, 88, 12, 0.14) 0%, rgba(234, 88, 12, 0) 36%),
    linear-gradient(180deg, #f7fbf9 0%, var(--bg) 62%, #eef2ef 100%);
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.48;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

body::before {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16) 0%, rgba(15, 118, 110, 0) 72%);
  filter: blur(8px);
}

body::after {
  width: 300px;
  height: 300px;
  left: -90px;
  top: 12%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.14) 0%, rgba(234, 88, 12, 0) 70%);
}

.container {
  width: min(960px, 100% - 32px);
  margin: 0 auto;
  padding: 30px 0 70px;
  animation: fade-in-up 360ms ease;
}

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(254, 253, 249, 0.97));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(2px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(234, 88, 12, 0.03));
  opacity: 0;
  transition: opacity 180ms ease;
}

.card:hover::after {
  opacity: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  color: #0f2a31;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

header.main {
  margin-bottom: 20px;
  text-align: center;
}

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

a {
  color: var(--brand-strong);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.26);
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.32);
  filter: saturate(1.05);
}

.btn:active,
button:active {
  transform: translateY(0);
}

.btn-secondary {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(145deg, #f6fbfa, #e9f2f0);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(22, 52, 59, 0.09);
}

.btn-secondary:hover {
  box-shadow: 0 10px 22px rgba(22, 52, 59, 0.13);
}

.btn-link {
  min-height: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand-strong);
}

.btn-link:hover {
  box-shadow: none;
  transform: none;
  color: var(--brand);
}

button:disabled,
.btn:disabled,
.btn-secondary:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.6);
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

input[readonly] {
  background: #f4f7f7;
}

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

label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #26454d;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 12px;
}

.options {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 8px 16px rgba(22, 52, 59, 0.08);
}

.option input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--brand);
}

.option input:checked + span {
  font-weight: 600;
  color: #103a43;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e9;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #14b8a6, var(--accent));
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.35);
  transition: width 320ms ease;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

.alert {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.alert-info {
  border-color: #9acfe6;
  border-left-color: #0284c7;
  background: #eff9ff;
}

.alert-success {
  border-color: #a7dab8;
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.alert-warning {
  border-color: #f2cb99;
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.alert-danger {
  border-color: #f3b2b2;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.career {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(160deg, #ffffff, #f8fcfb);
}

details {
  margin-bottom: 8px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #184b56;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7eff0;
  vertical-align: top;
}

th {
  background: #f2f8f7;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #335a62;
}

tbody tr:hover {
  background: #f9fcfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid #dfe8ea;
  margin: 12px 0;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 7px;
  background: #f0f6f7;
  color: #0f4f5b;
}

pre {
  margin: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

.small {
  font-size: 0.9rem;
}

.loading {
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

.footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 24px, 900px);
    padding-top: 22px;
  }
}

@media (max-width: 760px) {
  body::before,
  body::after {
    display: none;
  }

  .card {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  button,
  .btn,
  .btn-secondary {
    width: 100%;
  }
}
