/* ==========================================================================
   offerte.css — FFENL Offerte aanvraag pagina
   Geladen via functions.php wanneer page-templates/offerte.php actief is.
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.of-hero {
  background-color: #5c3a2e;
  position: relative;
  padding: clamp(7rem, 6rem + 4vw, 10rem) 0 0;
  margin: 0;
  border: none;
}

/* Dot-pattern overlay */
.of-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(242, 228, 207, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.of-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) 4rem;
}

.of-eyebrow {
  color: #c89e8c;
  border-color: rgba(200, 158, 140, 0.3);
}

.of-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: #f2e4cf;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.of-hero__sub {
  font-size: var(--fs-md);
  color: rgba(242, 228, 207, 0.7);
  margin: 0;
}

/* Wave: mahogany (#5c3a2e) → crème (#f2e4cf) */
.of-hero__wave {
  width: 100%;
  line-height: 0;
  background-color: #f2e4cf;
  border: none;
}

.of-hero__wave svg {
  display: block;
  width: 100%;
}

/* ── Hoofdsectie ───────────────────────────────────────────────────────────── */

.of-main {
  background-color: #f2e4cf;
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(5rem, 4rem + 5vw, 9rem);
}

.of-main__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.of-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ── Voortgangsbalk ────────────────────────────────────────────────────────── */

.of-progress {
  margin-bottom: 2rem;
}

.of-progress__track {
  display: flex;
  align-items: center;
  gap: 0;
}

.of-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.of-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--clr-border, #ddd5c4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 250ms ease, border-color 250ms ease;
  position: relative;
  z-index: 1;
}

.of-progress__step--active .of-progress__dot {
  background: #5c3a2e;
  border-color: #5c3a2e;
}

.of-progress__step--done .of-progress__dot {
  background: #3f7052;
  border-color: #3f7052;
}

.of-progress__step--done .of-progress__dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.of-progress__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--clr-text-subtle);
  white-space: nowrap;
  transition: color 250ms ease;
}

.of-progress__step--active .of-progress__label {
  color: #5c3a2e;
  font-weight: var(--fw-semibold);
}

.of-progress__step--done .of-progress__label {
  color: #3f7052;
}

.of-progress__line {
  flex: 1;
  height: 2px;
  background: var(--clr-border, #ddd5c4);
  margin: 0 0.25rem;
  margin-bottom: 1.4rem; /* align with dots */
}

/* ── Formulier ─────────────────────────────────────────────────────────────── */

.of-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.of-form {
  display: block;
}

/* Stappen */
.of-step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}

.of-step--active {
  display: block;
}

.of-step__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 1.75rem;
  padding: 0;
}

/* Rijen */
.of-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.of-row--2 {
  grid-template-columns: 1fr 1fr;
}

/* Veld */
.of-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.of-row .of-field {
  margin-bottom: 0;
}

.of-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.of-req {
  color: #a03030;
  margin-left: 2px;
}

.of-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--clr-border, #ddd5c4);
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  background: #fdfaf5;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-sizing: border-box;
}

.of-input:focus {
  outline: none;
  border-color: #5c3a2e;
  box-shadow: 0 0 0 3px rgba(92, 58, 46, 0.12);
  background: #fff;
}

.of-input--error {
  border-color: #a03030;
  box-shadow: 0 0 0 3px rgba(160, 48, 48, 0.1);
}

.of-textarea {
  resize: vertical;
  min-height: 120px;
}

.of-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5e55' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Checkboxes */
.of-checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.of-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--clr-border, #ddd5c4);
  border-radius: var(--radius-full);
  background: #fdfaf5;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  user-select: none;
}

.of-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #5c3a2e;
  flex-shrink: 0;
}

.of-check:has(input:checked) {
  border-color: #5c3a2e;
  background: rgba(92, 58, 46, 0.06);
  color: #5c3a2e;
  font-weight: var(--fw-medium);
}

/* Radio buttons */
.of-radiogroup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.of-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  user-select: none;
}

.of-radio input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #5c3a2e;
  flex-shrink: 0;
}

/* Navigatieknoppen */
.of-step__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border, #ddd5c4);
}

.of-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
  border: none;
}

.of-btn--next,
.of-btn--submit {
  background: #5c3a2e;
  color: #f2e4cf;
}

.of-btn--next:hover,
.of-btn--submit:hover {
  background: #7a4e40;
  transform: translateY(-1px);
}

.of-btn--prev {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1.5px solid var(--clr-border, #ddd5c4);
}

.of-btn--prev:hover {
  background: #faf5eb;
  border-color: #5c3a2e;
  color: #5c3a2e;
}

/* Foutmelding */
.of-alert {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  color: #a03030;
  font-size: var(--fs-sm);
  margin-bottom: 1.5rem;
}

/* Bevestiging */
.of-confirm {
  text-align: center;
  padding: 2rem 1rem;
}

.of-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eaf2e0;
  color: #3f7052;
  margin-bottom: 1.25rem;
}

.of-confirm__title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 0.75rem;
}

.of-confirm__text {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.of-confirm__link {
  color: #5c3a2e;
  text-decoration: none;
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  transition: color 150ms ease;
}

.of-confirm__link:hover {
  color: #7a4e40;
}

/* ── Vertrouwensblok ───────────────────────────────────────────────────────── */

.of-trust {
  position: sticky;
  top: 6rem;
}

.of-trust__card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.of-trust__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 1.25rem;
}

.of-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.of-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.of-trust__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(92, 58, 46, 0.08);
  color: #5c3a2e;
  margin-top: 1px;
}

.of-trust__item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  margin-bottom: 0.15rem;
}

.of-trust__item p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .of-layout {
    grid-template-columns: 1fr;
  }

  .of-trust {
    position: static;
    order: -1;
  }

  .of-trust__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .of-trust__item {
    flex: 1 1 calc(50% - 0.9rem);
  }
}

@media (max-width: 640px) {
  .of-row--2 {
    grid-template-columns: 1fr;
  }

  .of-trust__list {
    flex-direction: column;
  }

  .of-trust__item {
    flex: none;
  }

  .of-progress__label {
    display: none;
  }
}
