/* ─────────────────────────────────────────
   contact--multi--form  (shared card shell)
───────────────────────────────────────── */
.contact--multi--form {
  width: 100%;
  position: relative;
  /* overflow: hidden; */
}
.contact--multi--form::before {
  content: '';
  position: absolute;
  bottom: -70px; left: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--green-soft);
  opacity: .55;
  pointer-events: none;
}

.form--panel--details {
    padding-top: 50px;
    padding-bottom: 30px;
    color: var(--black);
}

.form--panel--details .panel-title {
    margin-bottom: 10px;
    font-size: 24px;
    font-family: HaasGrotDispMedium;
}

.form--panel--details .panel-sub {
    font-size: 18px;
}

/* ── Stepper ── */
.cmf-stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}
.cmf-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.cmf-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 2px;
  background: #D9D9D9;
  transition: background .4s;
}
.cmf-step-item.done:not(:last-child)::after { background: var(--primary); }
.cmf-step-item.active:not(:last-child)::after { background: var(--primary); }

.cmf-step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: #CACACA;
  color: var(--white);
  transition: background .3s, color .3s;
  z-index: 1;
  position: relative;
}
.cmf-step-item.active .cmf-step-circle {
  background: var(--primary);
  color: var(--white);
}
.cmf-step-item.done .cmf-step-circle {
  background: var(--primary);
  color: var(--white);
}


.cmf-step-label {
    margin-top: 8px;
  font-size: 18px;
  color: #CACACA;
  transition: color .3s;
  text-align: center;
}

.cmf-step-item.active .cmf-step-label { color: var(--primary); }
.cmf-step-item.done   .cmf-step-label { color: var(--grey-600); }

/* ── Form body ── */
.cmf-form-body { position: relative; }

/* ── Individual steps ── */
.cmf-step { display: none; animation: fadeUp .28s ease; }
.cmf-step.is-active { display: block; }

/* ── Grid ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

/* ── Labels ── */
.label { 
    font-size: 14px;
    color: var(--black); 
    margin-bottom: 0px;
}
.req   { color: var(--red); margin-left: 2px; }
.opt   { color: var(--grey-400); font-weight: 400; }

/* ── Inputs ── */
.input, .select, .textarea {
    width: 100%;
  border: 1px solid var(--black);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  min-height: 50px;
}
.input::placeholder,
.select option[value=""],
.textarea::placeholder { color: var(--grey-400); }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141,198,63,.14);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,64,64,.10);
}

.textarea { resize: vertical; min-height: 110px; }

.select-wrap { position: relative; }
.select { appearance: none; cursor: pointer; padding-right: 36px; }
.select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--grey-600);
  border-bottom: none;
  pointer-events: none;
}

/* ── Inline error ── */
.field-error {
  font-size: 12px;
  color: var(--red);
  display: none;
}
.field-error.visible { display: block; }

/* ── Checkboxes ── */
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--black);
  user-select: none;
  border: 1px solid #e4e7ee;
  padding: 12px 14px;
  border-radius: 10px;
}
.check input[type="checkbox"] { display: none; }
.box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #c8cdd8;
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
}
.check input:checked ~ .box {
  background: var(--primary);
  border-color: var(--primary);
}
.check input:checked ~ .box::after {
  content: '';
  width: 4px; height: 8px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
  display: block;
}
.checks.is-invalid .box { border-color: var(--red); }

/* ── Upload ── */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #c8cdd8;
  border-radius: 15px;
  padding: 36px 24px;
  cursor: pointer;
  text-align: center;
  gap: 8px;
  background: #f8fafc;
}
.upload-area:hover { border-color: var(--primary); background: var(--white); }
.upload-area input[type="file"] { display: none; }
.upload-icon { color: var(--primary); line-height: 1; }
.upload-title { font-size: 14px; font-weight: 500; }
.upload-title u { color: var(--primary); }
.upload-hint  { font-size: 12px; color: var(--grey-400); }
.upload-name  { font-size: 13px; color: var(--primary); font-weight: 500; display: none; margin-top: 4px; }

/* ── Actions ── */
.form-actions {
  display: flex;
  align-items: center;
  margin-top: 36px;
  gap: 12px;
}
.spacer { flex: 1; }

/* ── Buttons ── */
.form-actions button{
    border: none;
    min-width: 107px;
    background: transparent;
    cursor: pointer;
}
.cmf-success button, .success-state button {
    border: none;
    min-width: 107px;
    background: transparent;
}

.form-actions button:focus, .form-actions button:focus-visible, .form-actions button:hover
.cmf-success button:focus, .cmf-success button:focus-visible, .cmf-success button:hover  {
    outline: none;
    border: none;
    box-shadow: none;
}
[hidden] { display: none !important; }

/* ── Success ── */
.cmf-success, .success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  animation: fadeUp .35s ease;
  color: var(--black);
}
.cmf-success.is-active, .success-state.is-active { display: flex; }
.success-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom:15px;
}
.success-title { font-size: 21px; font-weight: 600; }
.success-msg   { font-size: 14px; color: var(--grey-600); max-width: 380px; line-height: 1.6;margin-bottom: 10px; }

.input::placeholder, .select::placeholder, .textarea::placeholder{
    color: #8c8c8c;
}


@media(max-width:991px){
  .form--panel--details {
    padding-top: 20px;
    padding-bottom: 10px;
}

.form--panel--details .panel-title {
    font-size: 20px;
}

.form--panel--details .panel-sub {
    font-size: 14px;
}

.cmf-step-label {
    font-size: 14px;
}

.cmf-step-circle {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.input, .select, .textarea {
    padding: 10px;
    min-height: 40px;
    font-size: 13px;
    border-radius: 5px;
}

.label {
    font-size: 13px;
}

.upload-title {
    font-size: 12px;
}

.upload-hint {
    font-size: 10px;
}

.form-actions button {
    min-width: fit-content;
}

.form-actions button .explore-btn > :nth-child(1) {
    display: none;
}

.form-actions button .explore-btn:hover > :nth-child(3) {
    width: 35px;
    opacity: 1;
    margin-inline-start: 0;
    transform: none;
}
.check {
    font-size: 13px;
    padding: 8px;
    border-radius: 5px;
}

.checks {
    row-gap: 0;
}

.upload-area {
    padding: 20px 10px;
}
}