:root {
  /* brand tokens */
  --color-brand: #24361a;
  --color-brand-hover: rgb(47, 79, 31);

  --color-accent: #92e222;
  --color-accent-hover: #91ed11;

  --color-tertiary: #c2a35e;
  --color-tertiary-hover: #d8ac4e;

  /* neutrals */
  --color-bg: #c2ccbd;
  --color-border: #e8e8e8;
  --color-surface: #ffffff;
  --color-surface-muted: #eeece6;
  --color-border: #d8d4ca;

  --color-text: black;

  /* type */
  --font-sans: bahnschrift, sans-serif;
  --font-display: "Gobold", serif;
}

@font-face {
  font-family: "Gobold";
  src: url("/fonts/Gobold-bold.woff2") format("woff2");
  font-display: swap;
}

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

html {
  height: -webkit-fill-available;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: bahnschrift, sans-serif;
  color: var(--color-text);
  background: white;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[x-cloak] {
  display: none !important;
}

/* layout */

.font-display {
  font-family: var(--font-display);
}

.section {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 100px 100px;
}
.section-slim {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 50px 100px;
}

.container {
  max-width: 1440px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 30px;
  }
  .section-slim {
    padding: 30px 30px;
  }
}

/* theme helpers */

.bg-brand {
  background: var(--color-brand);
  color: white;
}

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

.text-brand {
  color: var(--color-brand);
}

/* type */

.eyebrow {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 300;
  text-transform: capitalise;
  color: black;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 69px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: white;
}

.page-description {
  font-family: var(--font-sans);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: white;
}

.section-title-light {
  color: white;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0.5px;
  font-size: 50px;
  opacity: 0.96;
  font-family: var(--font-display);
}

.section-title-dark {
  color: black;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.5px;
  font-size: 50px;
  font-family: var(--font-display);
}

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

/* buttons */

.btn {
  display: flex;
  width: 190px;
  height: 59px;
  padding: 13px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  cursor: pointer !important;
  color: var(--Black, #000);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.1px;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: black;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

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

.btn-secondary {
  background: var(--color-brand);
  color: white;
}

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

.btn-tertiary {
  background: var(--color-tertiary);
  color: var(--color-tertiary-ink);
}

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

.scrollable-section {
  scroll-margin-top: 240px;
}

/* forms */

.form-field {
  margin-bottom: 0.875rem;
}

.form-label {
  display: none;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-hint {
  font-weight: 400;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 24px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #f6f6f5;
  color: var(--color-text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8b9185;
  opacity: 0.5;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: #bdb8ac;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  background: var(--color-surface);
}

.form-textarea {
  min-height: 114px;
  resize: vertical;
}

.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  min-height: 56px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #d9d6cf;
  border-radius: 10px;
  background-color: #f3f2ef;
  color: #3b3935;
  padding: 0 48px 0 16px;
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  cursor: pointer;
}

.form-select:hover {
  border-color: #cfc8bb;
  background-color: #f7f5f1;
}

.form-select:focus {
  outline: none;
  border-color: #c2a14a;
  box-shadow: 0 0 0 4px rgba(194, 161, 74, 0.18);
  background-color: #fff;
}

.form-select:required:invalid {
  color: #8b857c;
}

.form-select option {
  color: #3b3935;
  background-color: #fff;
}

.form-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-select-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8b857c;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.form-select-wrapper:focus-within .form-select-icon {
  color: #c2a14a;
}

.form-select-wrapper:focus-within .form-select-icon svg {
  transform: translateY(1px);
}

.form-select-icon svg {
  display: block;
  transition: transform 0.2s ease;
}

.form-file::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface-muted);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--ease-standard),
    border-color var(--ease-standard);
}

.form-file::file-selector-button:hover {
  background: #e5e1d7;
  border-color: #bfb9ab;
}

.form-footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-submit {
  width: 100%;
}

.form-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #d9d6cf;
  border-radius: 5px;
  background: #f3f2ef;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.form-checkbox-input:checked {
  background: #c2a14a;
  border-color: #c2a14a;
}

.form-checkbox-input:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(194, 161, 74, 0.18);
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-brand);
  letter-spacing: 0.5px;
}

.policy-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #000;
}

.policy-content p {
  margin-bottom: 16px;
  text-align: left;
}

.policy-content ul {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 8px;
  list-style: disc;
  text-align: left;
}

.policy-content a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.policy-content a:hover {
  color: var(--color-brand-hover);
}

@media (min-width: 640px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form-submit {
    width: auto;
  }
}

.is-invalid {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

/* responsiveness */
@media (max-width: 1024px) {
  .section-title-dark,
  .section-title-light,
  .paragraph-dark,
  .paragraph-light {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-title-dark,
  .section-title-light {
    font-size: 36px;
  }
  .paragraph-dark,
  .paragraph-light {
    font-size: 16px;
  }
  .page-title {
    font-size: 45px;
  }
  .page-description {
    font-size: 20px;
  }
  p {
    text-align: center;
  }
}
