:root {
  --bg: #003152;
  --surface: #053a5f;
  --surface-soft: #07436d;
  --surface-deep: #002945;
  --text: #f6fcff;
  --muted: #addff1;
  --line: #addff1;
  --accent: #addff1;
  --accent-soft: #d9f4ff;
  --success: #d8ffe8;
  --error: #ffd6d6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Mattone", Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  display: none;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: -2;
  width: min(520px, 100vw);
  height: 74vh;
  background: url("../img/background-person.png") center bottom / cover no-repeat;
  filter: brightness(1.42) contrast(0.82) saturate(0.92);
  opacity: 0.60;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 10%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 10%, #000 30%);
}

body::after {
  content: "";
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 42%, rgba(0, 49, 82, 0.56) 66%, rgba(0, 49, 82, 0.24) 100%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(390px, calc(100% - 30px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 18px 34px;
  background: transparent;
}

.hero,
.form-section {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  text-align: center;
}

.hero::after {
  content: none;
}

.brand-logo {
  width: 124px;
  height: 124px;
  margin: 0 auto 10px;
  padding: 12px;
  border: 2px solid #b5c3ff;
  border-radius: 50%;
  background: var(--accent);
  object-fit: contain;
  object-position: center center;
}

.eyebrow {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  width: min(300px, 100%);
  margin: -2px auto 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.links,
form {
  display: grid;
  gap: 30px;
}


.links {
  margin-top: 60px;
}

.link-card,
button {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 13px 46px;
  color: #003152;
  background: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.link-card:hover,
button:hover {
  color: #003152;
  border-color: #001f34;
  background: #ffffff;
}




.link-card.primary,
button {
  color: #003152;
  border-color: var(--accent);
  background: var(--accent);
}

.link-card.primary:hover,
button:hover {
  color: #003152;
  background: #ffffff;
}


.link-icon {
  position: absolute;
  left: 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}.link-card::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 9px 0 currentColor, 0 18px 0 currentColor;
  opacity: 0.92;
  transform: translateY(-9px);
}



.form-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 3px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  text-align: center;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #003152;
  border-radius: 18px;
  padding: 13px 14px;
  color: #001f34;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  margin-top: 1px;
}

button {
  margin-top: 2px;
}

.message {
  padding: 12px 13px;
  border: 3px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.message p {
  margin: 0;
}

.message.success {
  background: var(--success);
}

.message.error {
  background: var(--error);
}

@media (max-width: 420px) {
  .page-shell {
  position: relative;
  width: min(390px, calc(100% - 30px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 18px 34px;
  background: transparent;
}

  .link-card,
  button {
    padding-inline: 42px;
  }
}
}

.back-link {
  width: fit-content;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  background: var(--button);
  font-size: 0.82rem;
  font-weight: 800;
}

.back-link:hover {
}
/* Appointment page polish */
.form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: 22px;
}

.form-section h2 {
  margin: 4px 0 2px;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 900;
  text-align: center;
}

.form-section form {
  gap: 22px;
}

.form-section label {
  gap: 9px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #003152;
  border-radius: 18px;
  padding: 13px 14px;
  color: #001f34;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

textarea {
  min-height: 92px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 31, 52, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #001f34;
  background: #ffffff;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.check-row input {
  width: 14px;
  min-height: 14px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.back-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 16px;
  color: #003152;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.back-link:hover {
  color: #003152;
  background: #ffffff;
}
.appointment-page::before,
.appointment-page::after {
  content: none;
}
/* Static appointment fields */
input,
select,
textarea {
  background: var(--accent-soft);
  color: #001f34;
  border-color: #003152;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 31, 52, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  background: #c8effc;
  border-color: #001f34;
}
@media (max-width: 1024px) {
  body::before,
  body::after {
    display: block;
  }

  .appointment-page::before,
  .appointment-page::after {
    display: none;
  }
}
.is-sent .page-shell {
  display: grid;
  place-items: center;
}

.is-sent .form-section {
  width: 100%;
}

.is-sent .back-link,
.is-sent .form-section h2 {
  display: none;
}

.success-screen {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 34px 24px;
  border: 2px solid #003152;
  border-radius: 30px;
  color: #003152;
  background: var(--accent-soft);
  text-align: center;
}

.success-screen strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.success-screen span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.success-count {
  opacity: 0.72;
}
