.contact-steps-section{
  margin-top: 34px;
}

.contact-steps-shell{
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(214,137,111,0.09), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,242,234,0.92));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 20px 50px rgba(31,44,56,0.06);
}

.contact-steps-copy{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 18px;
}

.contact-steps-copy h2{
  margin: 12px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.98;
  color: var(--navy);
}

.contact-steps-intro{
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-soft);
}

.contact-steps-progress{
  display: grid;
  gap: 14px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.contact-steps-rail{
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231,221,211,0.92), rgba(242,235,228,0.94));
  overflow: visible;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.7);
}

.contact-steps-fill{
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d77e72, #bb5c4c);
  box-shadow: 0 10px 24px rgba(182,84,71,0.18);
  transition: width .7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.contact-steps-fill::after{
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 45%, transparent 100%);
  transform: translateX(-140%);
  animation: stepsFillShimmer 4.6s ease-in-out infinite;
}

.contact-steps-glow{
  position: absolute;
  inset: -8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(214,137,111,0.10), transparent);
  filter: blur(12px);
  opacity: 0.22;
  pointer-events: none;
}

.contact-steps-logo{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(247,241,233,0.96));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow:
    0 16px 36px rgba(31,44,56,0.12),
    0 0 0 8px rgba(255,255,255,0.12);
  transition: left .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: stepsLogoGlow 7s ease-in-out infinite;
}

.contact-steps-logo img{
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.contact-steps-labels{
  position: relative;
  height: 28px;
}

.contact-steps-label{
  position: absolute;
  top: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #85909a;
  transition: color .3s ease, transform .3s ease;
}

.contact-steps-label[data-step-label="1"]{
  left: 0;
  transform: translateX(0);
}

.contact-steps-label[data-step-label="2"]{
  left: 50%;
  transform: translateX(-50%);
}

.contact-steps-label[data-step-label="3"]{
  right: 0;
  transform: translateX(0);
}

.contact-steps-label.is-active{
  color: var(--navy);
  margin-top: -1px;
}

.contact-steps-form{
  display: grid;
  gap: 22px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.contact-steps-panels{
  position: relative;
}

.contact-step-panel,
.contact-step-success{
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 18px 40px rgba(31,44,56,0.06);
}

.contact-step-panel{
  animation: stepFadeIn .45s ease;
}

.contact-step-grid{
  display: grid;
  gap: 18px 20px;
}

.contact-step-grid.two-col{
  grid-template-columns: 1fr 1fr;
}

.contact-step-field{
  display: grid;
  gap: 9px;
}

.contact-step-field-full{
  grid-column: 1 / -1;
}

.contact-step-field label{
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.contact-step-field input,
.contact-step-field select,
.contact-step-field textarea{
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31,44,56,0.10);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
  appearance: none;
}

.contact-step-field textarea{
  resize: vertical;
  min-height: 138px;
}

.contact-step-field select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(31,44,56,0.55) 50%),
    linear-gradient(135deg, rgba(31,44,56,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% + 1px),
    calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.contact-step-field input::placeholder,
.contact-step-field textarea::placeholder{
  color: #8b95a0;
}

.contact-step-field input:focus,
.contact-step-field select:focus,
.contact-step-field textarea:focus{
  outline: none;
  border-color: rgba(182,84,71,0.28);
  background: rgba(255,255,255,0.98);
  box-shadow:
    0 0 0 4px rgba(214,137,111,0.14),
    0 14px 28px rgba(31,44,56,0.06);
}

.contact-step-field input:user-invalid,
.contact-step-field select:user-invalid,
.contact-step-field textarea:user-invalid{
  border-color: rgba(182,84,71,0.42);
}

.contact-steps-footer{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-steps-note{
  margin: 0;
  max-width: 760px;
  width: 100%;
  text-align: center;
  color: #7c8791;
  font-size: 14px;
  line-height: 1.7;
}

.contact-steps-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.contact-steps-back,
.contact-steps-next{
  min-width: 150px;
}

.contact-steps-back{
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(31,44,56,0.10);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(31,44,56,0.05);
}

.contact-steps-back:hover{
  background: rgba(255,255,255,0.94);
}

.contact-steps-next{
  background: linear-gradient(135deg, #bb5b4c 0%, #d47a6d 100%);
  color: #fff;
  border: 1px solid rgba(182,84,71,0.18);
  box-shadow: 0 12px 30px rgba(182,84,71,0.22);
  opacity: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.06);
  animation: stepsNextGlow 4.8s ease-in-out infinite;
}

.contact-steps-next:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(182,84,71,0.28);
}

.contact-steps-status{
  margin: -8px 0 0;
  min-height: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.contact-step-success-card{
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 8px 0 4px;
}

.contact-step-success-mark{
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.98), rgba(247,241,233,0.96));
  box-shadow: 0 18px 34px rgba(31,44,56,0.10);
}

.contact-step-success-mark img{
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.contact-step-success-card h3{
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--navy);
}

.contact-step-success-card p{
  margin: 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
}

.contact-step-success-note{
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

@keyframes stepsRailGlow{
  0%, 78%, 100%{ opacity: 0.18; transform: translateX(-6%); }
  85%{ opacity: 0.52; transform: translateX(6%); }
  92%{ opacity: 0.24; transform: translateX(0); }
}

@keyframes stepsFillShimmer{
  0%, 74%, 100%{
    transform: translateX(-140%);
    opacity: 0;
  }
  79%{
    opacity: 0.7;
  }
  88%{
    transform: translateX(140%);
    opacity: 0.42;
  }
}

@keyframes stepsNextGlow{
  0%, 76%, 100%{
    box-shadow: 0 12px 30px rgba(182,84,71,0.22);
  }
  86%{
    box-shadow:
      0 14px 34px rgba(182,84,71,0.28),
      0 0 18px rgba(214,137,111,0.16);
  }
}

@keyframes stepsLogoGlow{
  0%, 76%, 100%{
    box-shadow:
      0 16px 36px rgba(31,44,56,0.12),
      0 0 0 8px rgba(255,255,255,0.12);
  }
  84%{
    box-shadow:
      0 18px 40px rgba(31,44,56,0.14),
      0 0 0 10px rgba(214,137,111,0.18),
      0 0 28px rgba(214,137,111,0.24);
  }
}

@keyframes stepFadeIn{
  from{
    opacity: 0;
    transform: translateY(14px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px){
  .contact-steps-shell{
    padding: 28px 22px;
    gap: 22px;
  }

  .contact-step-grid.two-col{
    grid-template-columns: 1fr;
  }

  .contact-step-field-full{
    grid-column: auto;
  }

  .contact-step-panel,
  .contact-step-success{
    padding: 22px;
  }

  .contact-steps-logo{
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 640px){
  .contact-steps-labels{
    gap: 10px;
  }

  .contact-steps-label{
    font-size: 12px;
  }

  .contact-steps-footer,
  .contact-steps-actions{
    align-items: stretch;
  }

  .contact-steps-actions{
    width: 100%;
    flex-direction: column;
  }

  .contact-steps-back,
  .contact-steps-next{
    width: 100%;
  }
}
