.contact-form-section {
  padding: clamp(2rem, 3vw, 3.25rem) var(--page-gutter) clamp(6.5rem, 10vw, 10rem);
  background: #f8f4e9;
  color: var(--color-ink);
}

.contact-form-section__grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  width: min(100%, 1510px);
  margin-inline: auto;
}

.contact-form-section__intro {
  position: sticky;
  top: 9.5rem;
  padding-block: clamp(1rem, 2vw, 2rem);
}

.contact-form-section__intro h2 {
  max-width: 11ch;
  color: var(--color-forest);
  font-family: var(--sans);
  font-size: clamp(2.5rem, 3.9vw, 4.3rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.contact-form-section__lead {
  max-width: 35rem;
  margin: 1.5rem 0 2.25rem;
  color: rgba(24, 49, 39, .72);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.contact-form-section__details {
  display: grid;
  gap: .8rem;
  margin: 0;
  font-style: normal;
}

.contact-form-section__details a,
.contact-form-section__details p {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 42px;
  margin: 0;
  color: var(--color-forest);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  text-decoration: none;
}

.contact-form-section__details a:hover { color: var(--color-accent); }

.contact-form-section__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #879469;
  color: #fff;
}

.contact-form-section__icon svg { width: 21px; height: 21px; fill: currentColor; }

.contact-form-section__panel {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3.25rem);
  border: 1px solid rgba(21, 60, 46, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 70px rgba(26, 48, 39, .07);
}

.contact-form-section__form-title {
  display: none;
  margin: 0;
  color: var(--color-forest);
  font-family: var(--sans);
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.wpcf7-form,
.vrtland-form-grid { display: grid; gap: 1.65rem; }
.wpcf7-form { margin: 0; }
.wpcf7-form p { margin: 0; }

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

.wpcf7-form label {
  display: grid;
  gap: .6rem;
  color: var(--color-ink);
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-transform: none;
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  min-height: 3.55rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(24, 49, 39, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .52);
  color: var(--color-ink);
  font: inherit;
  font-size: .95rem;
  line-height: 1.4;
  text-transform: none;
  transition: border-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui), background 180ms var(--ease-ui);
}

.wpcf7-form-control::placeholder { color: rgba(24, 49, 39, .46); opacity: 1; }
.wpcf7-form select.wpcf7-form-control { cursor: pointer; }
.wpcf7-form textarea.wpcf7-form-control { min-height: 10rem; resize: vertical; }

.wpcf7-form-control:focus {
  border-color: var(--color-forest) !important;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(113, 140, 69, .16);
}

.vrtland-form-upload { display: grid; gap: .6rem; align-content: start; min-width: 0; }
.vrtland-form-upload > br { display: none; }
.vrtland-form-upload__label { color: var(--color-ink); font-size: .92rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.4; }

.wpcf7-form .vrtland-file-picker {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3.55rem;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  overflow: visible;
  border: 1px dashed rgba(24, 49, 39, .34);
  border-radius: 8px;
  background: rgba(248, 244, 233, .48);
  cursor: pointer;
  transition: border-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui), background 180ms var(--ease-ui);
}

.vrtland-file-picker:hover { border-color: rgba(24, 49, 39, .58); background: rgba(248, 244, 233, .78); }
.vrtland-file-picker:focus-within { border-color: var(--color-forest); box-shadow: 0 0 0 3px rgba(113, 140, 69, .16); }
.vrtland-file-picker > .wpcf7-form-control-wrap { position: absolute; z-index: 2; inset: 0; }
.wpcf7-form .vrtland-file-picker__input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; }
.vrtland-file-slots { display: none !important; }

.vrtland-file-picker__button {
  flex: 0 0 auto;
  padding: .55rem .7rem;
  border-radius: 7px;
  background: var(--color-moss);
  color: var(--color-forest);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
}

.vrtland-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: rgba(24, 49, 39, .65); font-size: .78rem; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.vrtland-file-picker.is-full { cursor: default; }
.vrtland-file-picker.is-full .vrtland-file-picker__input { pointer-events: none; }
.vrtland-file-picker.is-processing { cursor: progress; opacity: .78; }
.vrtland-file-picker.is-processing .vrtland-file-picker__input { cursor: progress; }

.vrtland-file-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vrtland-file-list[hidden] { display: none; }

.vrtland-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-width: 0;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(24, 49, 39, .14);
}

.vrtland-file-item:first-child { border-top: 1px solid rgba(24, 49, 39, .14); }
.vrtland-file-item__details { display: grid; gap: .12rem; min-width: 0; }
.vrtland-file-item__name { overflow: hidden; color: var(--color-forest); font-size: .8rem; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.vrtland-file-item__meta { color: rgba(24, 49, 39, .58); font-size: .72rem; font-weight: 520; line-height: 1.35; }

.vrtland-file-item__remove {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(24, 49, 39, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--color-forest);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 450;
  line-height: 1;
  transition: border-color 180ms var(--ease-ui), background 180ms var(--ease-ui), color 180ms var(--ease-ui);
}

.vrtland-file-item__remove:hover,
.vrtland-file-item__remove:focus-visible { border-color: var(--color-accent); outline: 0; background: #fff; color: var(--color-accent); }
.vrtland-file-item__remove:disabled { cursor: wait; opacity: .5; }

.vrtland-file-picker__error {
  display: block;
  font-size: .78rem;
  font-weight: 520;
  line-height: 1.45;
  text-transform: none;
}

.vrtland-file-picker__error:empty { display: none; }
.vrtland-file-picker__error { color: #8f2727; }

.vrtland-form-upload.has-error .vrtland-file-picker,
.vrtland-form-upload.has-server-error .vrtland-file-picker,
.vrtland-form-upload:has(.vrtland-file-picker__input.wpcf7-not-valid) .vrtland-file-picker {
  border-color: #a33a35;
  border-style: solid;
  background: rgba(163, 58, 53, .045);
}

.vrtland-file-picker > .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  width: 100%;
  margin: 0;
}

.vrtland-form-upload:has(.wpcf7-not-valid-tip) .vrtland-file-picker,
.vrtland-form-upload.has-server-error .vrtland-file-picker { margin-bottom: 1.35rem; }
.vrtland-form-consent { padding-top: .1rem; }
.vrtland-form-consent .wpcf7-form-control-wrap,
.vrtland-form-consent .wpcf7-acceptance,
.wpcf7-acceptance .wpcf7-list-item { margin: 0; padding: 0; }

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

.wpcf7-acceptance input {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin: .1rem 0 0;
  accent-color: var(--color-forest);
}

.wpcf7-acceptance a { font-weight: 650; }
.vrtland-form-actions { display: flex; align-items: center; gap: .75rem; }

.wpcf7-submit {
  width: max-content;
  min-height: 3.6rem;
  padding: .9rem 1.8rem;
  border: 1px solid var(--color-accent);
  border-radius: 9px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .96rem;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
  transition: background 180ms var(--ease-ui), border-color 180ms var(--ease-ui), color 180ms var(--ease-ui), transform 120ms var(--ease-ui);
}

.wpcf7-submit:focus-visible,
.wpcf7-submit:active { border-color: #9f5132; background: #9f5132; color: #fff; }
.wpcf7-submit:active { transform: translateY(1px); }

@media (hover: hover) and (pointer: fine) {
  .wpcf7-submit:hover { border-color: #9f5132; background: #9f5132; color: #fff; }
}

.wpcf7-submit:disabled { cursor: wait; opacity: .72; color: #fff; }

.wpcf7-not-valid { border-color: #a33a35 !important; }
.wpcf7-not-valid-tip { margin-top: .4rem; color: #8f2727; font-size: .8rem; font-weight: 550; text-transform: none; }
.wpcf7-response-output { margin: .15rem 0 0 !important; padding: .95rem 1.05rem !important; border-width: 1px !important; border-radius: 8px; font-size: .9rem; line-height: 1.5; }
.wpcf7-form:not(.has-submit-attempt) .wpcf7-not-valid-tip,
.wpcf7-form:not(.has-submit-attempt) .wpcf7-response-output { display: none; }
.wpcf7-form:not(.has-submit-attempt) .wpcf7-not-valid { border-color: rgba(24, 49, 39, .24) !important; }
.wpcf7-spinner { margin: 0 .5rem; }
.contact-form-section__notice { margin: 0; color: #8f2727; }

@media (max-width: 980px) {
  .contact-form-section { padding-top: .5rem; }
  .contact-form-section__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-form-section__intro { position: static; padding-block: 0; }
  .contact-form-section__intro h2,
  .contact-form-section__lead { display: none; }
  .contact-form-section__form-title { display: block; margin-bottom: .8rem; }
}

@media (max-width: 620px) {
  .contact-form-section { padding-bottom: 6rem; }
  .contact-form-section__grid { gap: 1.5rem; }
  .contact-form-section__panel { padding: 1.25rem; border-radius: 14px; }
  .vrtland-form-row { grid-template-columns: 1fr; }
  .wpcf7-form,
  .vrtland-form-grid { gap: 1.25rem; }
  .vrtland-file-picker__button { padding-inline: .6rem; font-size: .74rem; }
  .vrtland-file-picker__name { font-size: .74rem; }
  .vrtland-file-item { padding-block: .7rem; }
  .vrtland-file-item__remove { width: 2.75rem; height: 2.75rem; }
  .wpcf7-submit { width: 100%; }
}
