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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subtitle strong {
  font-weight: inherit;
}

:root {
  --bg: #F5F0E8;
  --primary: #6B3A2A;
  --secondary: #A0634F;
  --accent: #C48A78;
  --text: #2C1810;
  --card-bg: #EDE8DE;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem 1rem;
  gap: 3rem;
}

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.seal {
  width: 280px;
  height: 280px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(107, 58, 42, 0.12));
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.25;
}

.hero .subtitle {
  font-size: 0.92rem;
  color: var(--secondary);
  letter-spacing: 0.3px;
}

/* forms wrapper */
.forms {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 700px;
}

.form-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 0 2rem;
}

.divider {
  width: 0.5px;
  align-self: stretch;
  background: var(--accent);
  flex-shrink: 0;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
}

.form-label.subtle {
  color: var(--secondary);
}

.form-row {
  display: flex;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(107, 58, 42, 0.1);
}

.form-row input {
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 0.5px solid var(--accent);
  border-right: none;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input::placeholder {
  color: var(--accent);
}

.form-row input:focus {
  border-color: var(--primary);
}

.form-row button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  padding: 0.8rem 1.1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--secondary);
}

.btn-secondary {
  background: var(--primary);
  color: var(--bg);
  border: none;
}

.btn-secondary:hover {
  background: var(--secondary);
}

/* trust line */
.trust {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2px;
  text-align: center;
  margin-top: 0.75rem;
}

.form-msg {
  font-size: 0.75rem;
  color: var(--secondary);
  min-height: 1.2em;
}

/* footer */
footer {
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 1px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* mobile */
@media (max-width: 640px) {
  main {
    padding: 2rem 1.5rem 1rem;
    gap: 2.5rem;
  }

  .seal {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .forms {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .divider {
    width: 60px;
    height: 0.5px;
    align-self: center;
  }

  .form-block {
    padding: 0;
    width: 100%;
  }

  .form-row {
    max-width: 100%;
  }
}
