@font-face {
  font-family: "Cotford";
  src: url("../assets/CotfordVar.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../assets/TT Hoves Light.otf.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../assets/TT Hoves Regular.otf.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../assets/TT Hoves Medium.otf.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0b0b0b;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e0d8;
  --bg: #f3efe8;
  --card: #ffffff;
  --error: #b42318;
  --radius: 10px;
  --font-display: "Cotford", Georgia, serif;
  --font-body: "TT Hoves", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.site-header {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 20px 32px;
}

.site-header img {
  height: 92px;
  width: auto;
  display: block;
}

main {
  padding: 48px 20px 72px;
}

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.intro {
  text-align: center;
  margin-bottom: 32px;
}

.intro h1,
.thanks h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.alert {
  background: #fdecea;
  color: var(--error);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 22px;
}

.field label.main,
.legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}

.option:hover {
  border-color: #cfc8bb;
}

.option input {
  margin-top: 3px;
  accent-color: var(--black);
}

.option span {
  font-size: 0.95rem;
}

.altro-wrap {
  display: none;
  margin: -2px 0 8px;
}

.altro-wrap.is-open {
  display: block;
}

.checks {
  display: flex;
  flex-direction: column;
}

.submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.submit:hover {
  background: #222;
}

.privacy {
  margin-top: 8px;
}

.privacy a {
  color: var(--text);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
  padding: 0 20px 40px;
}

.thanks {
  text-align: center;
  background: var(--card);
  border-radius: 16px;
  padding: 48px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.thanks p {
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

@media (max-width: 640px) {
  .site-header img {
    height: 72px;
  }

  .card {
    padding: 24px 18px;
  }

  .intro h1,
  .thanks h1 {
    font-size: 1.6rem;
  }
}
