.contact {
  position: relative;
  min-height: 666px;
  padding: 75px 0 65px;
  background-image: url("../images/home/contact-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 550px;
  align-items: center;
  gap: 104px;
}

.contact__copy h2 {
  margin-bottom: 24px;
  font-size: 48px;
  letter-spacing: -1.5px;
  line-height: 1.25;
}

.contact__copy p {
  max-width: 570px;
  margin-bottom: 28px;
  color: #737b86;
  font-size: 16px;
}

.contact__copy strong {
  color: #3a414b;
  font-size: 20px;
  font-weight: 600;
}

.contact-form {
  padding: 30px 34px 22px;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 15px;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #59616c;
  font-size: 13px;
}

.contact-form label em {
  color: #ed4f55;
  font-style: normal;
}

.contact-form input,
.contact-form select {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  padding: 0 14px;
  background: #fbfcfd;
  border: 1px solid #e2e6eb;
  border-radius: 6px;
  outline: 0;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form__field {
  position: relative;
  margin-bottom: 12px;
}

.contact-form__field > label {
  margin-bottom: 5px;
}

.contact-multiselect__control {
  position: relative;
}

.contact-multiselect__trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 14px;
  color: #8b929c;
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid #dce5ef;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(21, 62, 103, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-multiselect__trigger:not(:disabled):hover,
.contact-multiselect__trigger[aria-expanded="true"] {
  background: #fff;
  border-color: #76aee7;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.08);
}

.contact-multiselect__trigger:focus-visible {
  outline: 0;
  border-color: #7fb4ec;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.1);
}

.contact-multiselect__trigger:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-multiselect__trigger.has-value {
  color: #26384d;
  border-color: #b8d3ef;
}

.contact-multiselect__summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.contact-multiselect__placeholder {
  overflow: hidden;
  color: #8b929c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-multiselect__tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 9px;
  color: #5e6874;
  background: #f3f5f8;
  border: 1px solid #edf0f3;
  border-radius: 4px;
  line-height: 1.4;
}

.contact-multiselect__tag > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-multiselect__tag-remove {
  flex: 0 0 auto;
  color: #9aa2ac;
  font-size: 16px;
  line-height: 1;
  transition: color 140ms ease;
}

.contact-multiselect__tag:hover .contact-multiselect__tag-remove {
  color: #55606d;
}

.contact-multiselect__trigger.is-invalid {
  border-color: #e65e64;
}

.contact-multiselect__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 1.5px solid #75808e;
  border-bottom: 1.5px solid #75808e;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.contact-multiselect__trigger[aria-expanded="true"] .contact-multiselect__chevron {
  transform: translateY(2px) rotate(225deg);
}

.contact-multiselect__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 246px;
  padding: 6px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d4e1ef;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(19, 55, 97, 0.16), 0 2px 8px rgba(19, 55, 97, 0.06);
  scrollbar-color: #c4d5e7 transparent;
  scrollbar-width: thin;
}

.contact-multiselect__panel.opens-upward {
  top: auto;
  bottom: calc(100% + 6px);
}

.contact-multiselect__options {
  display: grid;
  gap: 1px;
}

.contact-form .contact-multiselect__option {
  display: grid;
  position: relative;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 7px 12px 7px 14px;
  color: #4f5864;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: color 140ms ease, background-color 140ms ease;
}

.contact-multiselect__option:hover {
  background: #f4f6f8;
}

.contact-multiselect__option:has(input:checked) {
  color: #1580ee;
  background: #fff;
}

.contact-multiselect__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

.contact-multiselect__option:has(input:focus-visible) {
  background: #f5f9fe;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 238, 0.28);
}

.contact-multiselect__option-copy {
  min-width: 0;
}

.contact-multiselect__option strong,
.contact-multiselect__option small {
  display: block;
}

.contact-multiselect__option strong {
  color: #333a44;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-multiselect__option:has(input:checked) strong {
  color: #1580ee;
  font-weight: 600;
}

.contact-multiselect__option-check {
  position: relative;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 140ms ease, transform 140ms ease;
}

.contact-multiselect__option-check::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  content: "";
  border-right: 1.5px solid #1580ee;
  border-bottom: 1.5px solid #1580ee;
  transform: rotate(45deg);
}

.contact-multiselect__option input:checked ~ .contact-multiselect__option-check {
  opacity: 1;
  transform: scale(1);
}

.contact-multiselect__option small {
  margin-top: 1px;
  overflow: hidden;
  color: #929aa5;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-multiselect__empty {
  padding: 14px 10px;
  text-align: center;
}

.contact-multiselect__empty p {
  margin: 0 0 8px;
  color: #7b8490;
  font-size: 12px;
}

.contact-multiselect__empty button {
  padding: 3px 8px;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.contact-form__field-status {
  min-height: 16px;
  margin: 4px 0 0;
  color: #929aa5;
  font-size: 11px;
  line-height: 1.45;
}

.contact-form__field-error {
  margin: -7px 0 8px;
  color: #d94f55;
  font-size: 11px;
  line-height: 1.45;
}

.contact-form__field-error[hidden] {
  display: none;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #7fb4ec;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.1);
}

.contact-form .is-invalid {
  border-color: #e65e64;
  box-shadow: 0 0 0 3px rgba(230, 94, 100, 0.08);
}

.contact-form .button {
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
}

.contact-form__notice,
.contact-form__status {
  margin: 10px 0 0;
  color: #a0a7b1;
  font-size: 11px;
  text-align: center;
}

.contact-form__status {
  min-height: 18px;
  color: var(--color-primary);
}

.contact-form__status.is-error,
.verification-card__status.is-error {
  color: #d94f55;
}

.contact-form__status.is-success {
  color: #16864b;
}

.verification-dialog {
  width: min(calc(100% - 32px), 500px);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.verification-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(61, 139, 226, 0.16), transparent 42%),
    rgba(11, 34, 65, 0.58);
  backdrop-filter: blur(1.5px) saturate(0.88);
}

.verification-card {
  position: relative;
  padding: 40px 40px 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid rgba(214, 228, 244, 0.95);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(6, 26, 54, 0.28), 0 6px 20px rgba(6, 26, 54, 0.12);
}

.verification-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #5fa8ee 0%, var(--color-primary) 48%, #5fa8ee 100%);
}

.verification-card__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #7f8996;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.verification-card__close:hover {
  color: #333a44;
  background: #f1f5fa;
}

.verification-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto 15px;
  color: var(--color-primary);
  background: linear-gradient(145deg, #f2f8ff 0%, #e5f1ff 100%);
  border: 1px solid #d5e8fb;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(5, 101, 207, 0.12);
  line-height: 0;
}

.verification-card__icon svg {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
}

.verification-card__icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verification-card__icon path:first-child {
  stroke-width: 2;
}

.verification-card__icon path:last-child {
  stroke-width: 2.4;
}

.verification-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
  text-align: center;
}

.verification-card > p:not(.verification-card__status) {
  margin-bottom: 26px;
  color: #7c8490;
  font-size: 13px;
  text-align: center;
}

.verification-card label {
  display: block;
  margin-bottom: 8px;
  color: #4b535e;
  font-size: 13px;
}

.verification-card label em {
  color: #ed4f55;
  font-style: normal;
}

.verification-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 12px;
}

.verification-code > input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  text-transform: uppercase;
  background: #fbfcfd;
  border: 1px solid #dce2e9;
  border-radius: 5px;
  outline: 0;
  font-size: 16px;
  letter-spacing: 2px;
}

.verification-code > input:focus {
  border-color: #6fa9e8;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.11);
}

.verification-code > input.is-invalid {
  border-color: #e65e64;
}

.verification-code__image {
  position: relative;
  height: 52px;
  padding: 0;
  overflow: hidden;
  background: #f4f8fc;
  border: 1px solid #cddbe9;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(21, 62, 103, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.verification-code__image:hover,
.verification-code__image:focus-visible {
  border-color: #69a4e2;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.1);
  outline: 0;
}

.verification-code__image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.verification-code__refresh-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(20, 50, 83, 0.67);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
}

.verification-code__image:hover .verification-code__refresh-text,
.verification-code__image:focus-visible .verification-code__refresh-text {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.verification-code__loading {
  color: #7c8490;
  font-size: 12px;
}

.verification-card__status {
  min-height: 20px;
  margin: 8px 0 4px;
  color: #687481;
  font-size: 12px;
  line-height: 1.55;
}

.verification-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 12px;
}

.verification-card__actions .button {
  width: 100%;
}

.verification-card [aria-busy="true"],
.contact-form [aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.wechat-float {
  position: absolute;
  top: 55%;
  right: 42px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #5f6670;
  font-size: 12px;
  transform: translateY(-50%);
}

.wechat-float img {
  width: 80px;
  height: 80px;
  margin-bottom: 4px;
}

@media (max-width: 1280px) {
  .wechat-float {
    right: 10px;
  }
}

@media (max-width: 1100px) {
  .contact__layout {
    grid-template-columns: 1fr 500px;
    gap: 60px;
  }

  .contact__copy h2 {
    font-size: 41px;
  }

  .wechat-float {
    display: none;
  }
}

@media (max-width: 900px) {
  .contact {
    min-height: auto;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .contact__copy h2 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .contact__layout {
    gap: 40px;
  }

  .contact__copy h2 {
    font-size: 34px;
  }

  .contact__copy p {
    font-size: 14px;
  }

  .contact__copy strong {
    font-size: 17px;
  }

  .contact-form {
    padding: 26px 20px 20px;
  }

  .contact-multiselect__panel {
    max-height: 220px;
  }

  .verification-card {
    padding: 34px 20px 24px;
  }

  .verification-card h2 {
    font-size: 21px;
  }

  .verification-code {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
  }

  .verification-card__actions {
    grid-template-columns: 1fr;
  }

  .verification-card__actions .button--outline {
    order: 2;
  }
}

