:root {
  color-scheme: light;
  --ink: #1f2118;
  --muted: #676b5b;
  --line: #e4dfd3;
  --paper: #fffdf8;
  --soft: #f6f0e6;
  --brand: #df1723;
  --green: #237a54;
  --gold: #c79538;
  --shadow: 0 24px 80px rgba(52, 45, 28, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.call-link {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: rgba(223, 23, 35, 0.94);
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(80, 36, 26, 0.18);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
}

.intro {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
}

.enquiry-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 48px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
  padding: 34px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(228, 223, 211, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.enquiry-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(35, 122, 84, 0.12);
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(223, 23, 35, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #c9121d;
  box-shadow: 0 16px 34px rgba(223, 23, 35, 0.3);
}

.back-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(223, 23, 35, 0.24);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.thank-you-page {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.2), rgba(255, 253, 248, 0.92)),
    url("../images/seniorsliving.jpeg") center / cover no-repeat;
}

.thanks-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.thanks-panel {
  width: min(560px, 100%);
  padding: 42px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(228, 223, 211, 0.84);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thanks-panel h1 {
  margin-bottom: 14px;
}

.thanks-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .call-link {
    top: 12px;
    right: 12px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .enquiry-section {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
    margin-bottom: 28px;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.35rem;
  }

  .enquiry-section {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .copy h2 {
    font-size: 2rem;
  }

  .thanks-panel {
    padding: 30px 22px;
  }
}
