.ideal-home-form-wrapper,
.ideal-home-form-wrapper * {
  box-sizing: border-box;
}

.ideal-home-form-wrapper {
  background: none !important;
  padding: 0 !important;
  margin: 40px auto !important;
  max-width: 800px !important;
  width: 100% !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #111111 !important;
  position: relative !important;
}

.ideal-home-form {
  max-width: 600px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.ideal-home-form .form-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin: 0 0 22px 0 !important;
}

.ideal-home-form .form-group {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

.ideal-home-form .form-group.full-width {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.ideal-home-form .form-group.half-width {
  flex: 0 0 calc(50% - 12px) !important;
  width: calc(50% - 12px) !important;
}

.ideal-home-form .form-group.empty-space {
  flex: 1 1 calc(50% - 12px) !important;
}

.ideal-home-form label {
  display: block !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  color: #111111 !important;
}

.ideal-home-form input[type="text"],
.ideal-home-form input[type="tel"],
.ideal-home-form input[type="email"],
.ideal-home-form select,
.ideal-home-form textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 2px solid #cfcfcf !important;
  border-radius: 16px !important;
  background: #f3f3f3 !important;
  color: #111111 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.ideal-home-form input[type="text"],
.ideal-home-form input[type="tel"],
.ideal-home-form input[type="email"],
.ideal-home-form select {
  height: 70px !important;
}

.ideal-home-form textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

.ideal-home-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24' fill='none'%3E%3Cpath d='M4 6L20 20L36 6' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 24px 14px !important;
  padding-right: 56px !important;
}

.ideal-home-form select::-ms-expand {
  display: none !important;
}

.ideal-home-form input[type="text"]:focus,
.ideal-home-form input[type="tel"]:focus,
.ideal-home-form input[type="email"]:focus,
.ideal-home-form select:focus,
.ideal-home-form textarea:focus {
  outline: none !important;
  border-color: #111111 !important;
}

.ideal-home-form input.is-error,
.ideal-home-form select.is-error,
.ideal-home-form textarea.is-error,
.ideal-home-form .checkbox-item input.is-error {
  border-color: #d32f2f !important;
}

.ideal-home-form .checkbox-group {
  margin-top: 4px !important;
}

.ideal-home-form .checkbox-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

.ideal-home-form .checkbox-item:last-child {
  margin-bottom: 0 !important;
}

.ideal-home-form .checkbox-item input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  margin: 4px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  accent-color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid #bdbdbd !important;
  box-shadow: none !important;
}

.ideal-home-form .checkbox-item label {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: #8b8b8b !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ideal-home-form .checkbox-item a {
  color: #8b8b8b !important;
  text-decoration: underline !important;
}

.ideal-home-form .checkbox-item a:hover {
  color: #111111 !important;
}

.ideal-home-form .submit-button {
  display: inline-block !important;
  width: auto !important;
  min-width: 220px !important;
  padding: 18px 24px !important;
  margin: 10px 0 0 0 !important;
  border: none !important;
  border-radius: 14px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.ideal-home-form .submit-button:hover {
  opacity: 0.9 !important;
}

.ideal-home-form .submit-button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.ideal-home-success-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(17, 17, 17, 0.55) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 20px !important;
}

.ideal-home-success-overlay.active {
  display: flex !important;
}

.ideal-home-success-modal {
  width: 100% !important;
  max-width: 720px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 40px 36px !important;
  text-align: center !important;
}

.ideal-home-success-modal h3 {
  margin: 0 0 16px 0 !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  color: #111111 !important;
}

.ideal-home-success-modal p {
  margin: 0 0 28px 0 !important;
  font-size: 22px !important;
  line-height: 1.5 !important;
  color: #555555 !important;
}

.ideal-home-success-button {
  display: inline-block !important;
  min-width: 220px !important;
  padding: 20px 28px !important;
  border: none !important;
  border-radius: 16px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .ideal-home-form-wrapper {
    margin: 20px 15px !important;
    max-width: none !important;
  }

  .ideal-home-form {
    max-width: 100% !important;
  }

  .ideal-home-form .form-row {
    flex-direction: column !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
  }

  .ideal-home-form .form-group,
  .ideal-home-form .form-group.half-width,
  .ideal-home-form .form-group.empty-space,
  .ideal-home-form .form-group.full-width {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .ideal-home-form .form-group.empty-space {
    display: none !important;
  }

  .ideal-home-form label {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }

  .ideal-home-form input[type="text"],
  .ideal-home-form input[type="tel"],
  .ideal-home-form input[type="email"],
  .ideal-home-form select {
    height: 64px !important;
    font-size: 17px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }

  .ideal-home-form textarea {
    font-size: 17px !important;
    padding: 14px 16px !important;
    min-height: 120px !important;
    border-radius: 12px !important;
  }

  .ideal-home-form select {
    background-position: right 16px center !important;
    background-size: 22px 13px !important;
    padding-right: 50px !important;
  }

  .ideal-home-form .checkbox-item {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .ideal-home-form .checkbox-item input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
  }

  .ideal-home-form .checkbox-item label {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .ideal-home-form .submit-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 22px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }

  .ideal-home-success-modal {
    padding: 30px 22px !important;
    border-radius: 18px !important;
  }

  .ideal-home-success-modal h3 {
    font-size: 28px !important;
  }

  .ideal-home-success-modal p {
    font-size: 18px !important;
  }

  .ideal-home-success-button {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }
}