@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Merriweather:wght@700&display=swap');

:root {
    color-scheme: light;
    --bg: #f4f8fc;
    --ink: #0f1f33;
    --muted: #48607d;
    --card: #ffffff;
    --line: #ccdae8;
    --primary: #00549f;
    --primary-strong: #003f78;
    --primary-soft: #dfeefd;
    --danger-soft: #ffe9eb;
    --danger-ink: #9f1e2e;
    --ok-soft: #e7f8ef;
    --ok-ink: #14653b;
    --shadow: 0 16px 38px rgba(4, 30, 64, 0.09);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(0, 84, 159, 0.12) 0, rgba(0, 84, 159, 0) 35%),
        radial-gradient(circle at 92% 4%, rgba(0, 132, 255, 0.12) 0, rgba(0, 132, 255, 0) 28%),
        linear-gradient(180deg, #f9fcff 0%, var(--bg) 100%);
}

.page {
    width: min(1060px, calc(100% - 34px));
    margin: 20px auto 52px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 84, 159, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.98));
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0076dd);
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.brand-title {
    display: grid;
    gap: 1px;
}

.brand-title strong {
    font-size: 1.02rem;
    line-height: 1.2;
}

.brand-title span {
    color: var(--muted);
    font-size: 0.92rem;
}

.top-actions,
.actions,
.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button,
.button-secondary,
.button-link {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 130ms ease, box-shadow 160ms ease, background-color 130ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0a69c0);
    box-shadow: 0 10px 20px rgba(0, 84, 159, 0.24);
}

.button-secondary,
.button-link {
    color: var(--primary-strong);
    border-color: rgba(0, 84, 159, 0.25);
    background: #fff;
}

.button:hover,
.button-secondary:hover,
.button-link:hover {
    transform: translateY(-1px);
}

.intro,
.content {
    border-radius: 18px;
    border: 1px solid rgba(0, 84, 159, 0.14);
    background: var(--card);
    box-shadow: var(--shadow);
}

.intro {
    position: relative;
    overflow: hidden;
    padding: 28px 26px 24px;
    margin-bottom: 18px;
}

.intro::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -74px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 84, 159, 0.16) 0%, rgba(0, 84, 159, 0) 72%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 0.9rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.7rem, 2.6vw, 2.45rem);
    line-height: 1.2;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(1.24rem, 2vw, 1.6rem);
}

.intro p,
.helper,
.footer {
    color: var(--muted);
    line-height: 1.62;
}

.form-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 84, 159, 0.08);
    color: var(--primary-strong);
    font-weight: 700;
}

.required-mark {
    color: #c01f34;
    font-weight: 700;
}

.status-note {
    margin-bottom: 0;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
}

.status-safe {
    background: var(--ok-soft);
    color: var(--ok-ink);
    border-color: #bfe9ce;
}

.status-warning {
    background: #fff6d9;
    color: #8b5f00;
    border-color: #e8d39a;
}

.content {
    padding: 22px;
}

.page-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

form {
    display: grid;
    gap: 16px;
}

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

.field,
.field-full {
    display: grid;
    gap: 7px;
}

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

label {
    font-weight: 700;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'] {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #bfcfe0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 10px 13px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 84, 159, 0.14);
    outline: none;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f8ff 100%);
    border: 1px solid rgba(0, 84, 159, 0.2);
}

.checkbox input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    font-weight: 700;
}

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

.alert-error {
    background: var(--danger-soft);
    color: var(--danger-ink);
    border-color: #f4bdc5;
}

.section-note {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.footer {
    margin-top: 8px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .page {
        width: min(100% - 18px, 1060px);
        margin-top: 12px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .content,
    .intro {
        padding: 18px;
    }
}

.top-actions .button-link {
  min-width: 150px;
}

.top-actions .button-link.current-tab {
  background: linear-gradient(135deg, var(--primary), #0a69c0);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(0, 84, 159, 0.24);
}

.intro-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 16px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 84, 159, 0.16);
  box-shadow: 0 16px 32px rgba(4, 30, 64, 0.14);
}

.intro-flavortext {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.7;
}


.brand-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  display: block;
}

.topbar .brand {
  align-items: center;
}

.intro-hero {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

.intro-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  margin: 12px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 84, 159, 0.16);
  box-shadow: 0 16px 32px rgba(4, 30, 64, 0.14);
}

.intro-flavortext,
.intro-note {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  text-align: left;
}
