.contact-container {
  max-width: 1040px;
}

.contact-office {
  padding-top: 20px;
}

.contact-section-title {
  margin: 0 0 25px;
  color: var(--meets-deep-green);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
}

.contact-lead {
  margin: 0 0 40px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
  text-align: center;
}

.contact-info {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.contact-map {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  flex: 1.1;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-details {
  padding: 35px;
  flex: 1;
  border-radius: 16px;
  background: #f0f6fa;
  overflow-wrap: anywhere;
}

.contact-details dl {
  display: grid;
  margin: 0;
  row-gap: 2px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-details dt {
  margin-top: 8px;
  color: #10a86e;
  font-weight: 700;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0;
  color: #333;
}

.contact-details a {
  color: inherit;
}

.contact-details__tel {
  color: var(--meets-deep-green) !important;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
}

.contact-divider {
  margin: 60px 0;
  border: 0;
  border-top: 1px solid #e0dfd5;
}

.contact-route h3 {
  margin: 0 0 35px;
  color: var(--meets-deep-green);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.contact-route__box {
  padding: 0 0 25px;
  overflow: hidden;
  border-radius: 20px;
  background: #ebf4f8;
}

.contact-route__photos {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
}

.contact-route__photos figure {
  position: relative;
  display: flex;
  margin: 0;
  flex: 1;
  align-items: center;
}

.contact-route__photos figure:not(:first-child) {
  padding-left: 40px;
}

.contact-route__photos figure:not(:first-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -4px;
  width: 60px;
  height: 96px;
  background: url("/assets/images/contact/contact-arrow.png") no-repeat center / contain;
  filter:
    drop-shadow(1px 1px 0 #fff)
    drop-shadow(-1px -1px 0 #fff)
    drop-shadow(1px -1px 0 #fff)
    drop-shadow(-1px 1px 0 #fff);
  transform: translateY(-50%);
}

.contact-route__photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.8;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  object-fit: cover;
  object-position: top center;
}

.contact-route__map {
  margin: 0 25px;
  padding: 20px;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
}

.contact-route__map img {
  width: 100%;
}

.contact-form-section {
  padding-top: 60px;
}

.contact-steps {
  position: relative;
  display: flex;
  max-width: 600px;
  margin: 0 auto 50px;
  padding: 0;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
}

.contact-steps::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 96px;
  right: 60px;
  left: 60px;
  height: 2px;
  background: #ccc;
}

.contact-step {
  position: relative;
  z-index: 2;
  display: flex;
  width: 120px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-step::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 93px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  transform: translateX(-50%);
}

.contact-step.is-active::before {
  background: var(--meets-green);
}

.contact-step__icon {
  display: block;
  width: 72px;
  height: 81px;
  background: no-repeat center top / contain;
}

.contact-step--1 .contact-step__icon {
  background-image: url("/assets/images/contact/step1-enable.png");
}

.contact-step--2 .contact-step__icon {
  background-image: url("/assets/images/contact/step2-disable.png");
}

.contact-step--2.is-active .contact-step__icon {
  background-image: url("/assets/images/contact/step2-enable.png");
}

.contact-step--3 .contact-step__icon {
  background-image: url("/assets/images/contact/step3-disable.png");
}

.contact-step--3.is-active .contact-step__icon {
  background-image: url("/assets/images/contact/step3-enable.png");
}

.contact-step__label {
  margin-top: 20px;
  color: #888;
  font-size: 20px;
  font-weight: 700;
}

.contact-step.is-active .contact-step__label {
  color: var(--meets-green);
}

.contact-form-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form-table tr {
  border-bottom: 1px solid #e0dfd5;
}

.contact-form-table th {
  width: 1%;
  padding: 24px 15px 24px 60px;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}

.contact-form-table td {
  padding: 20px 60px 20px 15px;
  vertical-align: middle;
}

.contact-field-label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.contact-required {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  background: #e23e20;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
}

.contact-form-table input,
.contact-form-table select,
.contact-form-table textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #202020;
  background-color: #fff;
  font: inherit;
  font-size: 18px;
}

.contact-form-table select {
  padding-right: 40px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.contact-form-table input:focus,
.contact-form-table select:focus,
.contact-form-table textarea:focus {
  border-color: var(--meets-green);
  outline: 3px solid rgba(34, 147, 94, .16);
}

.contact-form-table [aria-invalid="true"] {
  border-color: #c62f22;
}

.contact-note,
.contact-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.contact-note {
  color: #777;
}

.contact-error {
  color: #b00020;
  font-weight: 700;
}

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

.contact-privacy {
  max-width: 640px;
  margin: 40px auto;
}

.contact-privacy__box {
  margin-bottom: 20px;
  padding: 20px 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.contact-privacy__box h3 {
  margin: 0 0 12px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.contact-privacy__box div {
  max-height: 120px;
  padding-top: 12px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.contact-privacy__box p {
  margin: 0 0 8px;
}

.contact-consent {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: auto;
}

.contact-consent a {
  color: #0066cc;
  text-decoration: underline;
}

.contact-submit {
  display: flex;
  margin-top: 30px;
  justify-content: center;
}

.contact-submit button,
.contact-button {
  display: inline-flex;
  min-width: 240px;
  height: 54px;
  gap: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--meets-green);
  box-shadow: none;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: opacity .2s ease, background-color .2s ease;
}

.contact-submit button::after,
.contact-button--primary::after {
  content: "▶";
  font-size: 14px;
}

.contact-submit button:hover,
.contact-button--primary:hover {
  opacity: .85;
}

.contact-confirm {
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
}

.contact-confirm dl {
  max-width: 780px;
  margin: 0 auto;
}

.contact-confirm dl > div {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border-bottom: 1px solid #e0dfd5;
}

.contact-confirm dt,
.contact-confirm dd {
  padding: 22px 18px;
  font-size: 18px;
  line-height: 1.6;
}

.contact-confirm dt {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
}

.contact-confirm dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.contact-confirm__notice {
  margin: 40px 0 25px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.contact-confirm__actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
}

.contact-confirm__actions form {
  margin: 0;
}

.contact-button--back {
  border: 2px solid var(--meets-green);
  color: var(--meets-green);
  background: #fff;
}

.contact-button--back:hover {
  background: #f0fcf6;
}

.contact-complete {
  padding: 40px 20px;
  text-align: center;
}

.contact-complete p {
  margin: 0 0 30px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-complete__lead {
  margin-bottom: 20px !important;
}

.contact-complete .contact-button {
  margin-top: 10px;
}

@media (max-width: 750px) {
  .contact-office {
    padding-top: 10px;
  }

  .contact-section-title {
    margin: 4px 0 12px;
    font-size: 26px;
  }

  .contact-lead {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.65;
  }

  .contact-info {
    flex-direction: column;
    gap: 12px;
  }

  .contact-map {
    min-height: 200px;
    flex: auto;
  }

  .contact-details {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .contact-details dl {
    font-size: 14px;
  }

  .contact-details dt {
    color: #059669;
    font-weight: 700;
  }

  .contact-details__tel {
    font-size: 22px;
  }

  .contact-divider {
    margin: 20px 0;
  }

  .contact-route h3 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .contact-route__box {
    padding: 16px;
    border-radius: 16px;
  }

  .contact-route__photos {
    width: calc(100% + 32px);
    margin: -16px -16px 16px;
  }

  .contact-route__photos figure {
    min-width: 0;
  }

  .contact-route__photos figure:not(:first-child) {
    padding-left: 20px;
  }

  .contact-route__photos figure:not(:first-child)::before {
    left: -2px;
    width: 32px;
    height: 56px;
  }

  .contact-route__photos img {
    border: 0;
    border-radius: 0;
    background: #ebf4f8;
    box-shadow: none;
  }

  .contact-route__map {
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 12px;
  }

  .contact-form-section {
    padding-top: 24px;
    padding-bottom: 150px;
  }

  .contact-steps {
    max-width: 320px;
    margin-bottom: 24px;
  }

  .contact-steps::after {
    top: 66px;
    right: 30px;
    left: 30px;
  }

  .contact-step {
    width: 70px;
  }

  .contact-step::before {
    top: 63px;
  }

  .contact-step__icon {
    width: 50px;
    height: 56px;
  }

  .contact-step__label {
    margin-top: 18px;
    font-size: 14px;
  }

  .contact-form-table th,
  .contact-form-table td {
    display: block;
    width: 100%;
  }

  .contact-form-table th {
    padding: 12px 0 5px;
    white-space: normal;
  }

  .contact-form-table td {
    padding: 0 0 12px;
  }

  .contact-field-label {
    font-size: 16px;
  }

  .contact-form-table input,
  .contact-form-table select,
  .contact-form-table textarea {
    font-size: 16px;
  }

  .contact-privacy {
    margin: 30px auto;
  }

  .contact-privacy__box {
    padding: 16px;
  }

  .contact-privacy__box h3 {
    font-size: 16px;
  }

  .contact-privacy__box div {
    font-size: 14px;
  }

  .contact-consent {
    align-items: flex-start;
    font-size: 14px;
  }

  .contact-submit button,
  .contact-button {
    min-width: 140px;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .contact-confirm {
    padding: 18px 14px;
  }

  .contact-confirm dl > div {
    display: block;
  }

  .contact-confirm dt {
    padding: 14px 0 5px;
  }

  .contact-confirm dd {
    padding: 0 0 14px;
    font-size: 16px;
  }

  .contact-confirm__actions {
    gap: 10px;
  }

  .contact-complete {
    padding: 30px 5px;
  }

  .contact-complete p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit button,
  .contact-button {
    transition: none;
  }
}
