/* You Got This Property's own brand, read from yougotthisproperty.co.uk (.pms-page): navy #1C3B5A, orange #E98A2B,
   cream #FBF5EC, Fraunces 600 headings, Inter body, orange uppercase buttons with a 6px radius. */
:root {
  --navy: #1c3b5a;
  --navy-deep: #14293f;
  --orange: #e98a2b;
  --orange-dark: #d67b1f;
  --cream: #fbf5ec;
  --cream-deep: #f4ebdd;
  --ink: #2b2b2b;
  --grey: #6b6459;
  --line: #e6dccb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}

/* The header, wordmark and nav button are his site's own rules (.pms-page header, .nav, .logo, .nav-links .btn). */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
}

.nav .btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 20px;
  color: var(--navy);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 40px 0 8px;
}

.label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--navy);
}

.sub {
  font-size: 18px;
  color: var(--grey);
  max-width: 680px;
  margin: 0 auto;
}

.video {
  margin: 28px 0 20px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.video video {
  width: 100%;
  height: 100%;
  display: block;
}

.video.has-video {
  padding: 0;
}

.play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play::after {
  content: "";
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.video strong {
  font-size: 20px;
  font-weight: 600;
}

.video span {
  opacity: 0.8;
  font-size: 14px;
}

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.proof {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof div {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}

.proof b {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}

.proof span {
  font-size: 14px;
  color: var(--grey);
}

section {
  margin: 48px 0;
}

section > h2 {
  font-size: 36px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
}

.steps i {
  font-style: normal;
  font-weight: 600;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: 18px;
  margin: 6px 0 8px;
}

.steps p,
.faq p,
.notfor li {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
}

.form {
  background: #fff;
  border-radius: 8px;
  border-top: 6px solid var(--orange);
  padding: 28px 24px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.form > p {
  margin: 0 0 18px;
  color: var(--grey);
  font-size: 15px;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 14px 0 6px;
}

.form input,
.form select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form select:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.form .btn {
  width: 100%;
  margin-top: 22px;
}

.form small {
  display: block;
  margin-top: 12px;
  color: var(--grey);
  font-size: 12px;
  text-align: center;
}

.error {
  margin-top: 14px;
  background: #fdecec;
  color: #a12020;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* Full width (outside .wrap), the largest type on the page after the hero: Matt asked for it to be impossible to
   scroll past. */
.notfor {
  background: var(--navy);
  border-top: 8px solid var(--orange);
  border-bottom: 8px solid var(--orange);
  padding: 72px 24px;
  margin: 64px 0;
}

.notfor-inner {
  max-width: 960px;
  margin: 0 auto;
}

.notfor h2 {
  color: #fff;
  text-align: center;
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.15;
  margin: 0 0 32px;
}

.notfor ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notfor li {
  color: #fff;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 18px 22px 18px 64px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  position: relative;
}

.notfor li::before {
  content: "✕";
  position: absolute;
  left: 22px;
  top: 18px;
  color: var(--orange);
  font-weight: 700;
}

.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--orange);
  margin: 14px 0 0;
}

.steps.five {
  grid-template-columns: repeat(6, 1fr);
}

.steps.five div {
  grid-column: span 2;
}

/* Steps 4 and 5 centred under the first three. */
.steps.five div:nth-child(4) {
  grid-column: 2 / span 2;
}

/* Pages after the landing page: the footer stays at the bottom of the window however short the card. */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 20px;
}

.form.wide {
  max-width: 760px;
}

.form .label {
  margin-bottom: 6px;
}

.form .q {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form legend,
.form .q > label {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.45;
}

.form .qn {
  color: var(--orange);
}

.form .opt {
  font-weight: 400;
  color: var(--grey);
}

.form .q.follow {
  margin-top: 10px;
}

.form .q.follow > label {
  font-size: 14px;
}

.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  resize: vertical;
  color: var(--ink);
}

.form textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.pills,
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.form .pill,
.form .tick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  line-height: 1.35;
}

.form .pill.on,
.form .tick.on {
  border-color: var(--orange);
  background: var(--cream);
}

.form .pill input,
.form .tick input {
  width: auto;
  margin: 0;
  accent-color: var(--orange);
}

.calendar {
  width: 100%;
  height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
}

.center {
  text-align: center;
}

.admin {
  padding: 20px;
}

.admin h2 {
  margin-bottom: 16px;
}

.admin .link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
}

.admin .answers dl {
  display: grid;
  grid-template-columns: minmax(200px, 40%) 1fr;
  gap: 6px 16px;
  margin: 0;
}

.admin .answers dt {
  font-weight: 600;
}

.admin .answers dd {
  margin: 0;
  white-space: pre-wrap;
}

.admin-settings {
  margin-top: 32px;
  max-width: 720px;
}

.admin-settings label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
}

.admin-settings input {
  display: block;
  width: 100%;
  font: inherit;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Fraunces", Georgia, serif;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--orange);
  font-size: 22px;
  font-family: "Inter", sans-serif;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0;
  padding: 0 26px 20px;
}

footer {
  margin-top: 56px;
  text-align: center;
  background: var(--navy-deep);
  color: #afbecb;
  font-size: 14px;
  padding: 44px 24px;
}

footer b {
  display: block;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

@media (max-width: 700px) {
  .proof,
  .steps,
  .steps.five,
  .ticks {
    grid-template-columns: 1fr;
  }

  .steps.five div,
  .steps.five div:nth-child(4) {
    grid-column: auto;
  }

  .notfor {
    padding: 48px 20px;
  }

  .notfor li {
    padding-left: 52px;
  }

  .notfor li::before {
    left: 18px;
  }

  .calendar {
    height: 900px;
  }
}
