@charset "UTF-8";

.title-wrap {
  background-image: url(../img/contact/main.jpg);
  background-position: center;
  background-size: cover;
}

/* contact */
.contact {
  width: 80%;
  margin: 80px auto 0 auto;
}
.contact-head {
  margin-bottom: 50px;
}
.contact-lead {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.8;
}
.contact-lead a {
  border-bottom: 1px solid #24292d;
}
.contact-form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 0 0 18px 0;
}
.form-row-top {
  align-items: start;
}
.form-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(210, 70, 75, 0.1);
  color: #d2464b;
  font-size: 11px;
  font-weight: 500;
}
.form-field {
  min-width: 0;
}
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: none;
  outline: none;
  background: #eeeeeb;
  color: #24292d;
  border-radius: 8px;
  font: inherit;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-form input:not([type="checkbox"]),
.contact-form select {
  height: 58px;
  padding: 0 20px;
}
.contact-form textarea {
  min-height: 220px;
  padding: 18px 20px;
  resize: vertical;
  line-height: 1.8;
}
.contact-form input:not([type="checkbox"])::placeholder,
.contact-form textarea::placeholder {
  color: rgba(36, 41, 45, 0.42);
}
.contact-form select {
  cursor: pointer;
  padding-right: 56px;
  background-image: none;
}
.form-field.select-wrap {
  position: relative;
}
.form-field.select-wrap::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #24292d;
  border-bottom: 1.5px solid #24292d;
  position: absolute;
  top: 48%;
  right: 24px;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #ecece9;
  box-shadow: 0 0 0 1px rgba(210, 70, 75, 0.18), 0 0 0 6px rgba(210, 70, 75, 0.08);
}
.form-field {
  min-width: 0;
  position: relative;
}
.error-text {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #d2464b;
}
.form-field.is-error .error-text {
  display: block;
}
.form-agree.is-error .error-text {
  display: block;
}
.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea {
  background: rgba(210, 70, 75, 0.06);
  box-shadow: 0 0 0 1px rgba(210, 70, 75, 0.4);
}
.form-agree {
  margin: 14px auto 0 auto;
}
.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.check-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eeeeeb;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.check-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  top: 5px;
  left: 9px;
  transform: rotate(45deg);
  opacity: 0;
}
.check-wrap input[type="checkbox"]:checked + .check-box {
  background: #d2464b;
}
.check-wrap input[type="checkbox"]:checked + .check-box::after {
  opacity: 1;
}
.check-wrap input[type="checkbox"]:focus-visible + .check-box {
  box-shadow: 0 0 0 1px rgba(210, 70, 75, 0.18), 0 0 0 6px rgba(210, 70, 75, 0.08);
}
.check-text {
  font-size: 14px;
  line-height: 1.8;
}
.check-text a {
  border-bottom: 1px dashed #24292d;
  padding-bottom: 1px;
}
.form-submit {
  width: 100%;
  margin: 30px auto 0;
}
.form-submit button {
  display: block;
  width: 220px;
  height: 60px;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  background: #26303a;
  color: #fff;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.form-submit button:hover {
  transform: translateY(-2px);
  background: #d2464b;
}
.form-submit button:active {
  transform: translateY(0);
}
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea,
.form-submit {
  font-size: 14px;
}

/* confirm */
.confirm {
  width: 80%;
  margin: 0 auto;
  padding: 150px 0 100px 0;
}
.contact-confirm-form {
  gap: 18px;
}
.confirm-box {
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  background: #eeeeeb;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.8;
  color: #24292d;
  word-break: break-word;
  display: flex;
  align-items: center;
}
.confirm-box-message {
  min-height: 220px;
}
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px auto 0;
}
.confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 60px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.confirm-btn:hover {
  transform: translateY(-2px);
}
.confirm-btn:active {
  transform: translateY(0);
}
.confirm-btn-back {
  border: 1px solid #26303a;
  background: transparent;
  color: #26303a;
}
.confirm-btn-back:hover {
  background: #26303a;
  color: #fff;
}
.confirm-btn-submit {
  border: none;
  background: #26303a;
  color: #fff;
}
.confirm-btn-submit:hover {
  background: #d2464b;
}

@media screen and (max-width: 1140px) {
  /* contact */
  .contact {
    width: 90%;
  }
  /* confirm */
  .confirm {
    width: 90%;
  }
}

@media screen and (max-width: 767px) {
  /* contact */
  .contact {
    margin: 60px auto 0 auto;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 0 16px 0;
  }
  .form-label {
    font-size: 13px;
  }
  .contact-form input:not([type="checkbox"]),
  .contact-form select {
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .contact-form textarea {
    min-height: 180px;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .form-submit button {
    width: 100%;
    min-width: auto;
    height: 56px;
  }
  .contact-form input:not([type="checkbox"]),
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
  .form-submit {
    font-size: 15px;
  }
  /* confirm */
  .confirm-box {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
  }
  .confirm-box-message {
    min-height: 180px;
  }
  .confirm-actions {
    gap: 20px;
  }
  .confirm-btn {
    width: 140px;
    max-width: none;
    height: 56px;
    font-size: 14px;
  }
}