/*
 * Interactive Contact Form
 */

/* Main container */

.icf-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Form */

.icf-form {
  position: relative;

  overflow: hidden;

  padding: 45px;

  border: 1px solid #e5e5e5;

  border-radius: 20px;

  background: #ffffff;

  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);

  font-family: inherit;
}

/* Progress */

.icf-progress {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  height: 4px;

  background: #eeeeee;
}

.icf-progress-bar {
  width: 25%;

  height: 100%;

  background: #111111;

  transition: width 0.35s ease;
}

/* Steps */

.icf-step {
  display: none;

  animation: icfSlideIn 0.3s ease;
}

.icf-step.is-active {
  display: block;
}

@keyframes icfSlideIn {
  from {
    opacity: 0;

    transform: translateX(20px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

/* Step number */

.icf-step-number {
  margin-bottom: 10px;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 0.12em;

  color: #777777;
}

/* Heading */

.icf-step h2 {
  margin: 0 0 10px;

  font-size: clamp(28px, 4vw, 42px);

  line-height: 1.15;

  color: #111111;
}

/* Description */

.icf-step p {
  margin: 0 0 28px;

  color: #777777;

  font-size: 16px;
}

/* Text inputs */

.icf-form input[type="text"],
.icf-form input[type="email"],
.icf-form input[type="tel"] {
  box-sizing: border-box;

  width: 100%;

  min-height: 58px;

  padding: 15px 17px;

  border: 1px solid #d8d8d8;

  border-radius: 10px;

  background: #ffffff;

  color: #111111;

  font-family: inherit;

  font-size: 17px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.icf-form input:focus {
  border-color: #111111;

  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

/* Buttons */

.icf-next,
.icf-submit,
.icf-back {
  min-height: 48px;

  padding: 0 21px;

  border: 0;

  border-radius: 9px;

  font-family: inherit;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.icf-next,
.icf-submit {
  background: #111111;

  color: #ffffff;
}

.icf-next:hover,
.icf-submit:hover {
  transform: translateY(-1px);

  opacity: 0.9;
}

.icf-back {
  padding-left: 0;

  background: transparent;

  color: #555555;
}

/* Button actions */

.icf-actions {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-top: 25px;
}

/* Options */

.icf-options {
  display: grid;

  gap: 12px;
}

/* Radio option */

.icf-option {
  display: flex;

  align-items: center;

  gap: 14px;

  min-height: 62px;

  padding: 0 17px;

  border: 1px solid #dddddd;

  border-radius: 10px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.icf-option:hover {
  border-color: #999999;

  transform: translateY(-1px);
}

/* Radio */

.icf-option input {
  width: 18px;

  height: 18px;

  margin: 0;

  accent-color: #111111;
}

/* Selected option */

.icf-option:has(input:checked) {
  border-color: #111111;

  background: #f7f7f7;
}

/* Other field */

.icf-other {
  margin-top: 18px;
}

.icf-other label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;

  font-weight: 700;

  color: #333333;
}

/* Errors */

.icf-error {
  min-height: 20px;

  margin-top: 7px;

  color: #b42318;

  font-size: 13px;
}

/* Message */

.icf-message {
  display: none;

  margin-top: 20px;

  padding: 15px 17px;

  border-radius: 10px;

  font-size: 15px;

  font-weight: 600;
}

.icf-message.show {
  display: block;

  background: #edf8f0;

  color: #1b6b36;
}

.icf-message.error {
  display: block;

  background: #fff1f1;

  color: #a82020;
}

/* Loading */

.icf-submit.loading {
  opacity: 0.6;

  pointer-events: none;
}

/* Mobile */

@media (max-width: 600px) {
  .icf-form {
    padding: 30px 20px;

    border-radius: 14px;
  }

  .icf-step h2 {
    font-size: 29px;
  }

  .icf-option {
    min-height: 56px;
  }
}
