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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: #f3f2f1;
  min-height: 100vh;
  padding: 0 0 60px;
  color: #201f1e;
}

/* ── Header bar ── */
.header-bar {
  background: #212E3D;
  border-top: 4px solid #1CCCB2;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-bar img {
  height: 28px;
  justify-self: start;
}

.header-center {
  text-align: center;
}

.header-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-subtitle {
  color: #8a9bb0;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ── Form container ── */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Card ── */
.card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.13), 0 0.3px 0.9px rgba(0,0,0,0.11);
  margin-top: 20px;
  overflow: hidden;
}

.card-accent {
  height: 4px;
  background: #1CCCB2;
}

.card-body {
  padding: 28px 32px 32px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #201f1e;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: #605e5c;
  margin-bottom: 24px;
}

/* ── Field ── */
.field {
  margin-bottom: 22px;
}

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #201f1e;
  margin-bottom: 6px;
}

.field label .required {
  color: #c50f1f;
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #201f1e;
  background: #ffffff;
  border: 1px solid #8a8886;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #1CCCB2;
  box-shadow: 0 0 0 2px rgba(0,200,160,0.2);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23605e5c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Status messages ── */
.status-msg {
  text-align: center;
  padding: 20px 0 4px;
  font-size: 0.875rem;
  color: #605e5c;
}

.status-msg.error { color: #c50f1f; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e1dfdd;
  border-top-color: #1CCCB2;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Submit button ── */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: #1CCCB2;
  color: #212E3D;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-submit:hover:not(:disabled) { background: #17b09a; }
.btn-submit:disabled { background: #a19f9d; cursor: not-allowed; color: #ffffff; }

.hidden { display: none !important; }

@media (max-width: 500px) {
  .two-col { grid-template-columns: 1fr; }
  .card-body { padding: 20px 18px 24px; }
}

/* ── Logo link and form tabs ── */
.header-bar > a {
  justify-self: start;
  line-height: 0;
}

.site-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #2b3a4c;
  padding: 0 16px;
}

.site-tab {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8d3df;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-tab:hover { color: #ffffff; }

.site-tab.active {
  color: #ffffff;
  border-bottom-color: #1CCCB2;
}
