.footer {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -2px;
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(246, 241, 239, 0.96);
  padding: 55px;
  margin-block: var(--space-xl);
}

.footer__quote {
  flex: 1;
  display: flex;
  align-items: center;
}

.footer__quote p {
  font-family: var(--ff-heading);
  font-size: clamp(22px, 2.8vw, 38px);
  color: #000;
  line-height: 1.35;
  margin: 0;
}

.footer__form-panel {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer__form-title {
  font-family: var(--ff-primary);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__step-label {
  font-size: 16px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

/* Steps */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}

/* Headings */
#contactform h2 {
  font-family: var(--ff-heading);
  font-size: clamp(36px, 4vw, 56px);
  text-transform: uppercase;
  margin-bottom: var(--space-l);
  line-height: 1.05;
}
#contactform h6 {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Dropdown */
.form-input {
  margin-bottom: 0;
}

.form-input .dropdown-toggle {
  background: transparent;
  width: 100%;
  height: 44px;
  border: none;
  border-bottom: 1px solid #000;
  color: #000;
  text-align: left;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-primary);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  border-radius: 0;
}
.form-input .dropdown-toggle::after {
  display: none;
}
.form-input .dropdown-toggle img {
  width: 12px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.form-input .dropdown-toggle:focus,
.form-input .dropdown-toggle:focus-visible {
  box-shadow: none;
  outline: none;
  background: transparent;
  color: #000;
}
.form-input .dropdown-toggle:active,
.form-input .dropdown-toggle.show {
  background: transparent !important;
  color: #000 !important;
}

.form-input .dropdown-menu {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-option {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 300;
  font-family: var(--ff-primary);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s;
}
.form-option:last-child {
  border-bottom: none;
}
.form-option:hover,
.form-option.selected {
  background: #000;
  color: #fff;
}

/* Text inputs */
.form-inputs {
  display: flex;
  flex-direction: column;
}

.form-inputs input {
  width: 100%;
  height: 44px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #000;
  color: #000;
  font-family: var(--ff-primary);
  font-size: 14px;
  font-weight: 300;
  padding: 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
.form-inputs input:focus {
  border-bottom-color: #000;
  outline: none;
}
.form-inputs input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* intl-tel-input */
.iti {
  width: 100%;
}
.iti__selected-country {
  height: 38px !important;
}

/* Checkbox  */
.form-check {
  padding: 0;
  margin-top: 24px;
}
.form-check label {
  position: relative;
  padding-left: 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  color: #000;
  margin: 0;
}
.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 12px;
  width: 12px;
  border: 1px solid #000;
  border-radius: 2px;
}
.form-check input[type="checkbox"]:checked + .checkmark::after {
  content: "\2713";
  display: block;
  text-align: center;
  line-height: 12px;
  font-size: 10px;
}

#politica-link {
  color: #000;
  text-decoration: underline;
}
#politica-link:hover {
  opacity: 0.6;
}

/* Errors */
label.error,
#terms-error,
.dropdown-error {
  display: block;
  font-size: 10px;
  color: #c0392b;
  font-weight: 300;
  margin: 6px 0 0;
  line-height: 1;
}

.dropdown-error:empty {
  display: none;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 45px 30px;
  }

  .footer__quote p {
    text-align: center;
    max-width: 100%;
  }

  .footer__form-panel {
    flex: none;
    width: 100%;
  }
  .footer__form-title,
  .footer__step-label {
    text-align: center;
  }

  .form-button {
    width: 100%;
  }
}

/* Buttons */
.form-button {
  margin-top: 32px;
  background: #000;
  color: #fff;
  border: none;
  font-family: var(--ff-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background 0.2s;
}
.form-button:hover {
  background: #222;
}

.form-buttons {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}
.form-buttons .form-button {
  margin-top: 0;
  flex: 1;
}
.form-button--back {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}
.form-button--back:hover {
  background: #f2f2f2;
}
