.contact-page {
  background: #f5f5f7;
}

.contact-main {
  position: relative;
  min-height: 720px;
  padding: 118px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.9) 0, rgba(245, 245, 247, 0) 340px),
    #f5f5f7;
}

.contact-bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.contact-bg-glow-one {
  top: -300px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 68%);
}

.contact-bg-glow-two {
  right: -260px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(89, 164, 255, 0.12), transparent 68%);
}

.contact-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

.contact-info-card {
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 32px;
  box-shadow: 0 24px 70px -42px rgba(15, 38, 67, 0.28);
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 255, 255, 0.94), transparent 30%),
    linear-gradient(145deg, #eaf4ff 0%, #f5f9ff 62%, #eef6ff 100%);
}

.contact-info-heading {
  max-width: 720px;
}

.contact-kicker,
.contact-form-kicker {
  margin-bottom: 14px;
  color: #0071e3;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-info-card h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.contact-intro {
  max-width: 660px;
  margin: 24px 0 0;
  color: #5f6670;
  font-size: 1rem;
  line-height: 1.72;
}

.contact-info-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 56px);
}

.contact-details {
  border-top: 1px solid rgba(0, 75, 145, 0.1);
}

.contact-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(0, 75, 145, 0.1);
  color: #1d1d1f;
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #0071e3;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 22px rgba(0, 74, 150, 0.08);
}

.contact-detail-icon svg,
.contact-map-pin svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail small,
.contact-detail strong {
  display: block;
}

.contact-detail small {
  margin-bottom: 3px;
  color: #7a828c;
  font-size: 0.76rem;
  font-weight: 500;
}

.contact-detail strong {
  font-size: 0.96rem;
  font-weight: 520;
  line-height: 1.45;
  word-break: break-word;
}

.contact-detail strong a {
  color: inherit;
}

.contact-detail strong a:hover {
  color: #0071e3;
}

.contact-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #6f7b88;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-copy:hover {
  color: #0071e3;
  background: #fff;
  transform: translateY(-1px);
}

.contact-copy:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.2);
  outline-offset: 2px;
}

.contact-copy svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-copy-check {
  display: none;
}

.contact-copy.is-copied {
  color: #248a3d;
  background: rgba(52, 199, 89, 0.12);
}

.contact-copy.is-copied .contact-copy-symbol {
  display: none;
}

.contact-copy.is-copied .contact-copy-check {
  display: block;
}

.contact-copy-feedback {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(29, 29, 31, 0.88);
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-copy.is-copied .contact-copy-feedback {
  opacity: 1;
  transform: translateY(0);
}

.contact-map-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 100%;
  margin-top: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 227, 0.11);
  border-radius: 24px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.contact-map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -28px rgba(0, 83, 170, 0.36);
}

.contact-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  fill: none;
  stroke: #a7ceef;
  stroke-width: 7;
}

.contact-map-pin,
.contact-map-copy,
.contact-map-arrow {
  position: relative;
  z-index: 1;
}

.contact-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: #0071e3;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.contact-map-copy strong,
.contact-map-copy small {
  display: block;
}

.contact-map-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-map-copy small {
  margin-top: 4px;
  color: #6e7781;
  font-size: 0.78rem;
}

.contact-map-arrow {
  color: #0071e3;
  font-size: 1.05rem;
}

.contact-response-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding-top: 30px;
  color: #67717c;
  font-size: 0.82rem;
}

.contact-response-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.12);
}

.contact-qr-card {
  display: flex;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(0, 113, 227, 0.11);
  border-radius: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
}

.contact-qr-card img {
  display: block;
  width: 215px;
  height: 215px;
  max-width: 100%;
  border-radius: 14px;
  background: #fff;
  image-rendering: auto;
  box-shadow: 0 14px 34px -22px rgba(0, 57, 122, 0.3);
}

.contact-qr-copy {
  margin-top: 20px;
  text-align: center;
}

.contact-qr-copy strong,
.contact-qr-copy small {
  display: block;
}

.contact-qr-copy strong {
  font-size: 1rem;
  font-weight: 620;
}

.contact-qr-copy small {
  margin-top: 6px;
  color: #6e7781;
  font-size: 0.8rem;
  line-height: 1.55;
}

.contact-form-card {
  position: relative;
  min-width: 0;
  padding: clamp(30px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}

.contact-form-heading {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.contact-form-heading h2,
.contact-success h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 630;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-form-heading p {
  max-width: 360px;
  margin: 0;
  color: #7c828b;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: right;
}

.required-mark,
.contact-field b,
.contact-field legend b {
  color: #0071e3;
  font-weight: 600;
}

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

.contact-field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.contact-field {
  position: relative;
  display: block;
  min-width: 0;
  color: #51565e;
}

.contact-field > span,
.contact-field legend {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  color: #565d66;
  font-size: 0.82rem;
  font-weight: 560;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #e1e5ea;
  outline: none;
  border-radius: 15px;
  color: #1d1d1f;
  background: #f7f8fa;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-field input {
  height: 54px;
  padding: 0 17px;
}

.contact-field textarea {
  min-height: 166px;
  padding: 16px 17px 34px;
  line-height: 1.6;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a0a7b0;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  border-color: rgba(0, 113, 227, 0.68);
  border-radius: 15px;
  outline: none;
  box-shadow: none;
  background: #fff;
}

.contact-inquiry-types {
  margin-top: 26px;
  border: 0;
}

.contact-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-choice-list label {
  cursor: pointer;
}

.contact-choice-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-choice-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid #e2e6eb;
  border-radius: 999px;
  color: #585f68;
  background: #f7f8fa;
  font-size: 0.86rem;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.contact-choice-list label:hover span {
  border-color: #bfd7f1;
  transform: translateY(-1px);
}

.contact-choice-list input:checked + span {
  border-color: #0071e3;
  color: #fff;
  background: #0071e3;
  box-shadow: 0 7px 18px rgba(0, 113, 227, 0.2);
}

.contact-choice-list input:focus-visible + span {
  outline: 3px solid rgba(0, 113, 227, 0.2);
  outline-offset: 2px;
}

.contact-message-field {
  margin-top: 24px;
}

.contact-character-count {
  position: absolute;
  right: 14px;
  bottom: 11px;
  color: #9aa1aa;
  font-size: 0.7rem;
}

.contact-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
}

.contact-form-bottom p {
  max-width: 620px;
  margin: 0;
  color: #858b93;
  font-size: 0.76rem;
  line-height: 1.65;
}

.contact-form-bottom a {
  color: #0071e3;
}

.contact-submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 152px;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0071e3;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
  font-size: 0.92rem;
  font-weight: 560;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.contact-submit:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 113, 227, 0.28);
}

.contact-submit:active {
  transform: scale(0.98);
}

.contact-submit svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-submit:hover svg {
  transform: translateX(3px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

.contact-form.is-sending .contact-submit-spinner {
  display: inline-block;
}

.contact-form.is-sending .contact-submit svg {
  display: none;
}

.contact-form-error {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 12px;
  color: #b42318;
  background: #fff1f0;
  font-size: 0.82rem;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-success {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: #34c759;
  box-shadow: 0 16px 32px rgba(52, 199, 89, 0.22);
}

.contact-success-mark svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-success p {
  max-width: 430px;
  margin: 18px 0 28px;
  color: #737981;
}

.contact-success button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  color: #0071e3;
  background: #f7f8fa;
  cursor: pointer;
}

.contact-footer {
  margin-top: 0;
}

.contact-footer .footer-col > span {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .contact-field-grid-three {
    grid-template-columns: 1fr;
  }

  .contact-form-heading {
    display: block;
  }

  .contact-form-heading p {
    margin-top: 14px;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .contact-main {
    padding: 96px 0 48px;
  }

  .contact-info-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info-card,
  .contact-form-card {
    border-radius: 26px;
  }

  .contact-response-note {
    margin-top: 0;
  }

  .contact-qr-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .contact-main {
    padding-top: 88px;
  }

  .contact-shell {
    padding: 0 14px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .contact-info-card h1 {
    font-size: 2.75rem;
  }

  .contact-intro {
    margin: 18px 0 24px;
  }

  .contact-detail {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
  }

  .contact-map-card {
    min-height: 134px;
    padding: 18px;
  }

  .contact-field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-choice-list {
    gap: 8px;
  }

  .contact-choice-list span {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.81rem;
  }

  .contact-form-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-success {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit-spinner {
    animation: none;
  }
}
