.contact-form {
  max-width: 780px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #9aa5b1;
  border-radius: 0.65rem;
  font: inherit;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field #address {
  min-height: 6rem;
}

.service-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-fieldset legend {
  margin-bottom: 0.45rem;
  padding: 0;
  color: var(--text);
  font-weight: 600;
}

.service-dropdown {
  position: relative;
}

.service-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #9aa5b1;
  border-radius: 0.65rem;
  list-style: none;
  cursor: pointer;
}

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

.service-dropdown summary:hover,
.service-dropdown[open] summary {
  border-color: var(--primary-dark);
}

.service-chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.service-dropdown[open] .service-chevron {
  transform: rotate(225deg);
}

.service-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  max-height: 19rem;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid #9aa5b1;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem;
  border-radius: 0.4rem;
  background: #fff;
  cursor: pointer;
}

.service-options label:hover {
  background: #f3f6f3;
}

.service-options label:has(input:checked) {
  color: #fff;
  background: var(--primary-dark);
}

.service-options label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.service-option-name {
  flex: 1;
  min-width: 0;
}

.service-selection {
  display: none;
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  color: var(--primary-dark);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-options label:has(input:checked) .service-selection {
  display: inline-block;
}

.service-options input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-dark);
}

.service-options input[type="checkbox"]:checked {
  accent-color: #fff;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--primary);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--primary-dark);
}

.form-help,
.form-required {
  margin: 0;
  font-size: 0.9rem;
}

.form-optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input[type="file"] {
  min-height: auto;
  padding: 0.55rem;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: var(--primary-dark);
  border: 0;
  border-radius: 0.45rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-trap {
  display: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.4rem 0;
  color: var(--text);
}

.form-consent input {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.form-consent a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cf-turnstile {
  min-height: 65px;
  margin-block: 1rem 1.4rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-actions .button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.form-actions .button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  color: var(--text);
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: var(--primary-dark);
}

.form-status[data-state="error"] {
  color: #9b1c1c;
}

.cookie-settings-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  max-width: 720px;
  margin-inline: auto;
  padding: 1.1rem;
  color: #fff;
  background: #0f1f1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  margin: 0;
  color: #e2e8f0;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.cookie-actions button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #fff;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  color: #fff;
  background: var(--primary);
}

.cookie-reject {
  color: #0f1f1a;
  background: #fff;
}

.journal {
  --primary: var(--green);
  --primary-dark: var(--forest);
  --text: var(--ink);
  --muted: #52645a;
  --accent: var(--green);
}
.journal .quote-section { background: var(--paper); }
.journal .quote-intro, .journal .quote-fields { max-width: 49rem; }
.journal .quote-intro .section-lead { margin: 1rem 0 2rem; max-width: 60ch; }
.journal .form-field, .journal .service-fieldset { min-width: 0; }
.journal .form-field input { min-width: 0; max-width: 100%; }
.journal .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; border-top: 1px solid var(--line); padding-top: .75rem; font-size: .9rem; }
.journal .footer-bottom a, .journal .footer-bottom button { display: inline-flex; align-items: center; min-height: 44px; }
.journal .cookie-banner {
  inset: auto max(1rem, env(safe-area-inset-right)) calc(max(1rem, env(safe-area-inset-bottom)) + 3.8rem) auto;
  width: min(24rem, calc(100% - 2rem));
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
}
@media (max-width: 40rem) {
  .journal .form-grid { grid-template-columns: minmax(0, 1fr); }
  .journal .form-actions { flex-direction: column; align-items: stretch; }
  .journal .form-actions .button { width: 100%; }
  .journal .service-options { position: static; margin-top: .35rem; }
  .journal .cookie-banner { padding: .85rem 1rem; font-size: .9rem; }
}
