.wp-block-propcomm-contact-form-block {
  background: #F7F2EA;
  width: 100%;
}

.cfb__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 48px 100px;
}

/* ── Heading ── */
.cfb__intro {
  text-align: center;
  margin-bottom: 48px;
}

.cfb__eyebrow {
  display: block;
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(6,72,36,.45);
  margin-bottom: 20px;
}

.cfb__heading {
  font-family: 'ConcretteXL', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #064824;
  margin: 0 0 20px;
}

/* Felanmälan form: small relabelled heading (collapses the baked text). */
.wp-block-propcomm-contact-form-block[data-type="felanmalan"] .cfb__heading {
  font-size: 0;
  margin: 0 0 16px;
}

.wp-block-propcomm-contact-form-block[data-type="felanmalan"] .cfb__heading::after {
  content: "Anmäl ditt ärende här";
  display: block;
  font-family: 'ConcretteXL', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  color: #064824;
}

.cfb__subline {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: clamp(.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: rgba(6,72,36,.6);
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Form fields ── */
.cfb__form {
  padding: var(--sp-8);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  background-color: #DCE6D3;
}

.cfb__field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(6,72,36,.15);
  padding: 28px 0 8px;
  position: relative;
}

.cfb__field:first-child {
  border-top: 1px solid rgba(6,72,36,.15);
}

.cfb__label {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(6,72,36,.45);
  margin-bottom: 6px;
}

.cfb__input,
.cfb__textarea,
.cfb__select {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(3, 41, 20, 0.8);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 4px 0 8px;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.cfb__input::placeholder,
.cfb__textarea::placeholder {
  color: rgba(6,72,36,.25);
}

.cfb__textarea {
  min-height: 120px;
}

.cfb__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23064824' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.cfb__field:focus-within .cfb__label {
  color: #064824;
}

.cfb__field:focus-within {
  border-bottom-color: rgba(6,72,36,.5);
}

/* ── Submit ── */
.cfb__submit-wrap {
  padding-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cfb__submit {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F7F2EA;
  background: #064824;
  border: none;
  padding: 18px 44px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cfb__submit:hover {
  background: #1e3a2f;
}

.cfb__submit:active {
  transform: scale(.98);
}

.cfb__submit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform .2s;
}

.cfb__submit:hover svg {
  transform: translateX(4px);
}

/* ── Status messages ── */
.cfb__success,
.cfb__error {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  text-align: center;
  display: none;
  margin-top: 20px;
}

.cfb__success { color: #064824; }
.cfb__error   { color: #b94040; }

.cfb__success.is-visible,
.cfb__error.is-visible {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cfb__inner {
    padding: 64px 32px 80px;
  }
}

@media (max-width: 480px) {
  .cfb__inner {
    padding: 48px 20px 64px;
  }
}
