.contact-form-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.contact-form-panel {
  background: #fff;
  border: 1px solid #e6dbb3;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(64, 54, 28, 0.08);
}

.contact-steps {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.contact-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-steps li.is-active {
  border-color: #1f7a8c;
  background: #1f7a8c;
  color: #fff;
}

.contact-field {
  margin-bottom: 22px;
}

.contact-field label,
.contact-field .contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="tel"],
.contact-form-panel input[type="email"],
.contact-form-panel textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  border-color: #1f7a8c;
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.16);
  outline: none;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}

.contact-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1f7a8c;
}

.contact-help,
.contact-error,
.contact-status {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.contact-help,
.contact-status {
  color: #5c6670;
}

.contact-error,
.contact-alert {
  color: #b3261e;
}

.contact-alert {
  margin-bottom: 18px;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
  background: #fff5f4;
  padding: 12px 14px;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  border: 1px solid #1f7a8c;
  border-radius: 6px;
  background: #1f7a8c;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-button:hover,
.contact-button:focus {
  border-color: #155966;
  background: #155966;
  color: #fff;
  text-decoration: none;
}

.contact-button.is-secondary {
  border-color: #a7b0ba;
  background: #fff;
  color: #344054;
}

.contact-button.is-secondary:hover,
.contact-button.is-secondary:focus {
  border-color: #667085;
  background: #f2f4f7;
  color: #222;
}

.contact-button:disabled {
  border-color: #b9c2cc;
  background: #b9c2cc;
  cursor: not-allowed;
}

.contact-confirm-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.contact-confirm-item dt,
.contact-confirm-item dd {
  margin: 0;
}

.contact-confirm-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-confirm-item dd {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  background: #f9fafb;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-confirm-item.is-wide dd {
  min-height: 140px;
}

.contact-complete {
  text-align: center;
}

.contact-complete-body {
  padding: 6px 0 4px;
}

.contact-complete-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e7f3f5;
  color: #1f7a8c;
  font-size: 28px;
  line-height: 1;
}

.contact-complete h3 {
  margin: 0 0 14px;
  color: #1f7a8c;
  font-size: 24px;
  line-height: 1.5;
}

.contact-complete p {
  margin: 0;
  line-height: 1.9;
}

.contact-page-main {
  padding: 0;
}

.contact-view[hidden],
.contact-alert[hidden],
.contact-status[hidden] {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .contact-form-panel {
    padding: 22px 16px;
  }

  .contact-steps {
    gap: 6px;
  }

  .contact-steps li {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-confirm-list {
    gap: 18px;
  }

  .contact-confirm-item dd {
    min-height: auto;
  }

  .contact-confirm-item.is-wide dd {
    min-height: 120px;
  }

  .contact-complete-mark {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .contact-actions,
  .contact-button {
    width: 100%;
  }
}
