.contact-section {
  background: linear-gradient(180deg, rgba(238, 232, 255, .72), rgba(247, 244, 255, 0));
}

.contact-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.contact-copy {
  padding: 34px;
  background: #050507;
  color: #fff;
  border-radius: 8px;
  min-height: 100%;
}

.contact-copy .section-label { color: #f0b274; }
.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.contact-copy p {
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
}

.support-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.support-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.contact-detail:hover,
.map-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(135, 80, 255, .72);
  background: rgba(135, 80, 255, .14);
}

.detail-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(135, 80, 255, .18);
  color: #c9b9ff;
}

.detail-icon svg,
.map-pin svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail strong,
.map-content strong {
  display: block;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-detail small,
.map-content small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 750;
}

.map-preview {
  position: relative;
  min-height: 170px;
  display: grid;
  align-content: end;
  margin-top: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(135, 80, 255, .18), rgba(5, 5, 7, .16)),
    #161122;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, .12) 18% 19%, transparent 19% 48%, rgba(255, 255, 255, .1) 48% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 24%, rgba(255, 255, 255, .1) 24% 25%, transparent 25% 56%, rgba(255, 255, 255, .12) 56% 57%, transparent 57%),
    radial-gradient(circle at 68% 42%, rgba(135, 80, 255, .5), transparent 24%);
}

.map-pin {
  position: absolute;
  top: 48%;
  left: 58%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #8750ff, #5c57f6);
  box-shadow: 0 18px 46px rgba(135, 80, 255, .38);
  transform: translate(-50%, -50%);
}

.map-content {
  position: relative;
  z-index: 1;
}

.appointment-form {
  padding: 34px;
  background: #fff;
  border: 1px solid rgba(5, 5, 7, .12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(5, 5, 7, .14);
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #8750ff;
}

.progress-step {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 10px 16px;
  color: #4b47c6;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.progress-step strong {
  display: block;
  margin-bottom: 4px;
  color: #4b47c6;
  font-size: 24px;
  font-weight: 500;
}

.progress-step span {
  display: block;
  font-size: 14px;
}

.progress-step.is-active {
  border-bottom-color: #050507;
}

.progress-step.is-active strong,
.progress-step.is-active span {
  color: #050507;
}

.form-step {
  display: none;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-step.is-active { display: block; }
.form-step legend {
  margin-bottom: 18px;
  color: #050507;
  font-size: 24px;
  font-weight: 800;
}

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

.field-grid .wide { grid-column: 1 / -1; }

[data-schedule-field].is-hidden {
  display: none;
}

.warranty-fields {
  display: none;
  grid-column: 1 / -1;
  padding: 18px;
  background: linear-gradient(135deg, rgba(135, 80, 255, .12), rgba(238, 232, 255, .72));
  border: 1px solid rgba(135, 80, 255, .22);
  border-radius: 8px;
}

.warranty-fields.is-visible {
  display: block;
}

.warranty-fields h4 {
  margin: 0 0 6px;
  color: #050507;
  font-size: 16px;
}

.warranty-fields p {
  margin: 0 0 16px;
  color: #6d6878;
  font-size: 13px;
  font-weight: 700;
}

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

.warranty-grid .wide { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 8px;
  color: #24202d;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: #050507;
  background: #f7f4ff;
  border: 1px solid rgba(5, 5, 7, .14);
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.hint {
  margin: 16px 0 0;
  color: #6d6878;
  font-size: 13px;
}

.field-help {
  color: #6d6878;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.ghost-button,
.next-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  color: #8750ff;
  background: #fff;
  border: 1px solid rgba(135, 80, 255, .32);
}

.next-button,
.submit-button {
  color: #fff;
  background: #8750ff;
  border: 1px solid #8750ff;
}

.summary-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f7f4ff;
  border: 1px solid rgba(5, 5, 7, .12);
  border-radius: 8px;
}

.summary-box div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  color: #24202d;
}

.summary-box strong { color: #050507; }

.ticket-routing {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  color: #24202d;
  background: linear-gradient(135deg, rgba(135, 80, 255, .12), rgba(247, 244, 255, .9));
  border: 1px solid rgba(135, 80, 255, .24);
  border-radius: 8px;
}

.ticket-routing strong {
  color: #050507;
  font-size: 16px;
}

.ticket-routing span {
  font-weight: 800;
}

.ticket-routing small {
  color: #6d6878;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #24202d;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .contact-shell { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-shell { width: min(100% - 28px, 1180px); }
  .appointment-form,
  .contact-copy { padding: 24px; }
  .field-grid,
  .warranty-grid { grid-template-columns: 1fr; }
  .form-progress { grid-template-columns: 1fr; border-bottom: 0; gap: 8px; }
  .progress-step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(5, 5, 7, .12);
    border-radius: 8px;
    text-align: left;
  }
  .progress-step.is-active { border-color: #8750ff; }
  .summary-box div { grid-template-columns: 1fr; }
  .form-actions { display: grid; }
}
