:root {
  color-scheme: light;
  --bg: #f7fbff;
  --panel: #ffffff;
  --text: #17324d;
  --muted: #6b7280;
  --line: #d8e7f5;
  --accent: #1769aa;
  --accent-dark: #0f4f81;
  --success-bg: #e8f7ef;
  --success-text: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(24, 32, 47, 0.08);
}

header {
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.brand-logo {
  width: 146px;
  height: 146px;
  object-fit: contain;
}
.brand-fallback {
  display: none;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: var(--accent);
  background: #ffffff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.1;
  padding: 6px;
}
.tagline {
  color: #17324d;
  font-weight: 600;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
}

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

.form-row {
  display: grid;
  gap: 8px;
}

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

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

button {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: #f28c00;
}

.success {
  display: none;
  margin-bottom: 18px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 700;
}

.policy-link {
  margin-top: -8px;
  font-size: 0.9rem;
}

.policy-link a {
  color: var(--muted);
}

.policy-link a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .brand-logo {
    width: 108px;
    height: 108px;
  }
  .brand-fallback {
    width: 108px;
    height: 108px;
  }

  main {
    margin: 20px auto;
    padding: 20px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}
