.contact-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.contact-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  font-family: Geist, "Geist Fallback", system-ui, -apple-system, sans-serif;
  color: #090e43;
}

.contact-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding-top: 96px;
    gap: 40px;
  }
}

.contact-left__title {
  margin: 0 0 28px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #090e43;
}

@media (max-width: 600px) {
  .contact-left__title {
    font-size: clamp(34px, 8vw, 48px);
  }
}

.contact-info-card {
  background: #f5f6f8;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5f6676;
}

.contact-response {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: #5f6676;
}

.contact-response .km-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-response .km-wrap .km {
  width: 40px;
  height: 40px;
  display: block;
  overflow: visible;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #e7e9ee;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(9, 14, 67, 0.08);
  box-sizing: border-box;
}

.contact-form-card__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #090e43;
}

.contact-intent-badge {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: #090e43;
  background: #eaf4ff;
  border-radius: 999px;
  padding: 6px 12px;
}

.contact-intent-badge[hidden] {
  display: none;
}

#contact-form {
  margin-top: 12px;
}

.contact-form-panel {
  position: relative;
  overflow: hidden;
}

.contact-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-step[hidden] {
  display: none;
}

.contact-step.is-entering {
  animation: contactStepIn 0.4s ease both;
}

@keyframes contactStepIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.contact-step.is-back.is-entering {
  animation-name: contactStepInBack;
}

@keyframes contactStepInBack {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 13px;
  font-weight: 500;
  color: #090e43;
}

.contact-req {
  color: #d92d20;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  color: #090e43;
  background: #ffffff;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-input,
.contact-select {
  height: 44px;
  padding: 0 14px;
}

.contact-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%235F6676' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.contact-textarea {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #66b5fb;
  box-shadow: 0 0 0 2px #66b5fb;
}

.contact-input.is-invalid,
.contact-select.is-invalid,
.contact-textarea.is-invalid {
  border-color: #d92d20;
}

.contact-field-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #d92d20;
  min-height: 0;
}

.contact-field-error:empty {
  display: none;
}

.contact-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5f6676;
}

.contact-hint[hidden] {
  display: none;
}

.contact-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .contact-row-2 {
    grid-template-columns: 1fr;
  }
}

.contact-select-wrap {
  position: relative;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.contact-actions--split {
  justify-content: space-between;
  align-items: center;
}

.contact-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.contact-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.contact-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-btn--primary {
  color: #ffffff;
  background: #090e43;
}

.contact-btn--secondary {
  color: #090e43;
  background: #eeeff2;
}

.contact-form-error {
  margin: 0 0 8px;
  font-size: 14px;
  color: #d92d20;
}

.contact-form-error[hidden] {
  display: none;
}

.contact-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 8px;
}

.contact-success[hidden] {
  display: none;
}

.contact-success .km-wrap {
  width: 64px;
  height: 64px;
}

.contact-success .km-wrap .km {
  width: 64px;
  height: 64px;
  display: block;
  overflow: visible;
}

.contact-success h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #090e43;
}

.contact-success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #5f6676;
}

.contact-form-panel[hidden] {
  display: none;
}