.form_block,
.final-page__form,
.lead-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.lead-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form .form-group {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
}

.lead-form label {
  display: block;
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: #cbd5e1;
}

.lead-form label::before {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #cbd5e1;
}

.lead-form label[for="first_name"]::before {
  content: "Όνομα";
}

.lead-form label[for="last_name"]::before {
  content: "Επώνυμο";
}

.lead-form label[for="email"]::before {
  content: "Διεύθυνση email";
}

.lead-form label[for="phone"]::before {
  content: "Τηλέφωνο";
}

.lead-form .form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 13px 16px;
  box-sizing: border-box;
  background: rgba(10, 17, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lead-form .form-input::placeholder {
  color: #64748b;
  opacity: 1;
}

.lead-form .form-input:hover {
  border-color: rgba(247, 158, 27, 0.45);
}

.lead-form .form-input:focus {
  border-color: #f79e1b;
  box-shadow: 0 0 0 3px rgba(247, 158, 27, 0.2);
}

.lead-form .form-error {
  min-height: 0;
  margin: 0;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.lead-form .form-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f79e1b 0%, #ff8800 50%, #e65100 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(247, 158, 27, 0.4);
  animation: form-submit-pulse 1.8s ease-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.lead-form .form-submit:hover,
.lead-form .form-submit:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(247, 158, 27, 0.55);
  filter: brightness(1.08);
}

.lead-form .form-submit:active {
  transform: translateY(0);
}

.lead-form .form-group:has(.iti),
.lead-form .form-group:has(.iti2) {
  position: relative;
  z-index: 20;
}

.lead-form .iti,
.lead-form .iti--allow-dropdown,
.lead-form .iti--separate-dial-code,
.lead-form .iti2,
.lead-form .iti2--allow-dropdown,
.lead-form .iti2--separate-dial-code {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0;
  overflow: visible;
}

.lead-form .iti__flag-container,
.lead-form .iti2__flag-container,
.lead-form .iti__country-container,
.lead-form .iti2__country-container {
  height: auto;
  max-height: none;
  min-height: 50px;
  overflow: visible;
  pointer-events: auto;
}

.lead-form .iti__selected-country,
.lead-form .iti2__selected-country {
  height: 50px;
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px 0 0 10px;
}

.lead-form .iti__selected-dial-code,
.lead-form .iti2__selected-dial-code {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.lead-form .iti__arrow,
.lead-form .iti2__arrow {
  display: inline-block;
  margin-left: 4px;
  border-top-color: #94a3b8;
}

.lead-form .iti input.form-input,
.lead-form .iti2 input.form-input,
.lead-form input[type="tel"].form-input {
  width: 100%;
  padding-left: 56px;
}

.lead-form .iti__dropdown-content,
.lead-form .iti2__dropdown-content {
  position: absolute;
  z-index: 10000;
  width: max-content;
  min-width: 240px;
  max-width: min(100%, 320px);
  max-height: none;
  height: auto;
  overflow: visible;
}

.lead-form .iti__country-list,
.lead-form .iti2__country-list {
  position: relative;
  z-index: 10000;
  width: max-content;
  min-width: 240px;
  max-height: none;
  height: auto;
  overflow: visible;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.lead-form .iti__country,
.lead-form .iti2__country,
.lead-form .iti__no-results,
.lead-form .iti2__no-results {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: auto;
  min-height: 36px;
  overflow: visible;
  color: #fff;
}

.lead-form .iti__country:hover,
.lead-form .iti2__country:hover,
.lead-form .iti__country.iti__highlight,
.lead-form .iti2__country.iti2__highlight {
  background: rgba(247, 158, 27, 0.16);
}

.form_block,
.final-page__form,
.lead-form,
.lead-form .form-group {
  overflow: visible;
}

@keyframes form-submit-pulse {
  0% {
    box-shadow: 0 8px 25px rgba(247, 158, 27, 0.4), 0 0 0 0 rgba(247, 158, 27, 0.5);
  }
  70% {
    box-shadow: 0 8px 25px rgba(247, 158, 27, 0.4), 0 0 0 12px rgba(247, 158, 27, 0);
  }
  100% {
    box-shadow: 0 8px 25px rgba(247, 158, 27, 0.4), 0 0 0 0 rgba(247, 158, 27, 0);
  }
}

@media (max-width: 768px) {
  .lead-form .form-input {
    font-size: 16px;
    padding: 14px;
  }

  .lead-form .form-submit {
    font-size: 1.05rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .lead-form {
    gap: 10px;
  }

  .lead-form .form-submit {
    min-height: 52px;
    font-size: 0.95rem;
    padding: 14px 12px;
  }
}
