body[data-page-file="contact.html"] .contact-section {
  position: relative;
  padding: 108px 0 88px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--card-glow) 18%, transparent), transparent 34%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 30%),
    var(--site-bg);
}

body[data-page-file="contact.html"] .contact-container {
  width: min(calc(100% - 48px), var(--site-container));
  margin: 0 auto;
}

body[data-page-file="contact.html"] .contact-intro {
  max-width: 960px;
  margin-bottom: 22px;
}

body[data-page-file="contact.html"] .contact-intro h1 {
  max-width: 940px;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--site-font);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

body[data-page-file="contact.html"] .contact-title-accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--title-highlight-gradient-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page-file="contact.html"] .contact-intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.72;
}

body[data-page-file="contact.html"] .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: start;
}

body[data-page-file="contact.html"] .contact-form-panel,
body[data-page-file="contact.html"] .contact-aside {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--site-surface-solid) 88%, transparent), color-mix(in srgb, var(--site-panel) 82%, transparent)),
    var(--site-surface);
  box-shadow: 0 26px 70px color-mix(in srgb, var(--bg-deep) 50%, transparent);
}

body[data-page-file="contact.html"] .contact-form-panel {
  padding: clamp(24px, 4vw, 38px);
}

body[data-page-file="contact.html"] .contact-panel-head {
  margin-bottom: 24px;
}

body[data-page-file="contact.html"] .contact-panel-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

body[data-page-file="contact.html"] .contact-panel-head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

body[data-page-file="contact.html"] #contactForm {
  display: grid;
  gap: 22px;
}

body[data-page-file="contact.html"] .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body[data-page-file="contact.html"] .form-group {
  min-width: 0;
  margin-bottom: 0;
}

body[data-page-file="contact.html"] .form-group label {
  display: block;
}

body[data-page-file="contact.html"] .form-group .required {
  margin-left: 2px;
}

body[data-page-file="contact.html"] .contact-form-actions {
  margin-top: 4px;
}

body[data-page-file="contact.html"] .contact-submit {
  width: 100%;
  cursor: pointer;
}

body[data-page-file="contact.html"] .contact-submit:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.72;
}

body[data-page-file="contact.html"] .contact-form-footer {
  margin: 14px 0 0;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

body[data-page-file="contact.html"] .contact-form-footer a,
body[data-page-file="contact.html"] .contact-channel a,
body[data-page-file="contact.html"] .contact-resources a {
  color: var(--brand-strong);
  text-decoration: none;
}

body[data-page-file="contact.html"] .contact-form-footer a:hover,
body[data-page-file="contact.html"] .contact-channel a:hover,
body[data-page-file="contact.html"] .contact-resources a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

body[data-page-file="contact.html"] .success-message {
  display: none;
  text-align: center;
  padding: 44px 18px;
}

body[data-page-file="contact.html"] .success-message.show {
  display: block;
}

body[data-page-file="contact.html"] .success-icon {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-strong);
  font-size: 30px;
  font-weight: 900;
}

body[data-page-file="contact.html"] .success-message h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
}

body[data-page-file="contact.html"] .success-message p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

body[data-page-file="contact.html"] .contact-aside {
  display: grid;
  gap: 0;
  overflow: hidden;
}

body[data-page-file="contact.html"] .contact-channel-list,
body[data-page-file="contact.html"] .contact-topics,
body[data-page-file="contact.html"] .contact-service,
body[data-page-file="contact.html"] .contact-resources {
  padding: 22px;
}

body[data-page-file="contact.html"] .contact-channel-list,
body[data-page-file="contact.html"] .contact-topics,
body[data-page-file="contact.html"] .contact-service {
  border-bottom: 1px solid var(--site-border);
}

body[data-page-file="contact.html"] .contact-channel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-page-file="contact.html"] .contact-channel + .contact-channel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--site-border);
}

body[data-page-file="contact.html"] .contact-channel-code {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--site-radius);
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--card-glow) 22%, transparent), transparent 68%),
    color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

body[data-page-file="contact.html"] .contact-aside h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
}

body[data-page-file="contact.html"] .contact-channel p,
body[data-page-file="contact.html"] .contact-channel span,
body[data-page-file="contact.html"] .contact-service li {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
}

body[data-page-file="contact.html"] .contact-channel a {
  display: block;
  width: fit-content;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page-file="contact.html"] .contact-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-file="contact.html"] .contact-topic {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand-strong);
  cursor: pointer;
  font-family: var(--site-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 13px;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}

body[data-page-file="contact.html"] .contact-topic:hover,
body[data-page-file="contact.html"] .contact-topic.active {
  border-color: color-mix(in srgb, var(--brand) 56%, transparent);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--text-primary);
}

body[data-page-file="contact.html"] .contact-service ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-file="contact.html"] .contact-service li {
  position: relative;
  padding-left: 16px;
}

body[data-page-file="contact.html"] .contact-service li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

body[data-page-file="contact.html"] .contact-resources {
  display: grid;
  gap: 8px;
}

body[data-page-file="contact.html"] .contact-resources a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-radius: var(--site-radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

body[data-page-file="contact.html"] .contact-resources a::after {
  content: ">";
  margin-left: 12px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
}

@media (max-width: 1024px) {
  body[data-page-file="contact.html"] .contact-section {
    padding-top: 100px;
  }

  body[data-page-file="contact.html"] .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body[data-page-file="contact.html"] .contact-section {
    padding: 96px 0 72px;
  }

  body[data-page-file="contact.html"] .contact-container {
    width: min(calc(100% - 32px), var(--site-container));
  }

  body[data-page-file="contact.html"] .contact-intro {
    margin-bottom: 22px;
  }

  body[data-page-file="contact.html"] .contact-intro h1,
  body[data-page-file="contact.html"] .contact-intro p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body[data-page-file="contact.html"] .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body[data-page-file="contact.html"] .contact-channel-list,
  body[data-page-file="contact.html"] .contact-topics,
  body[data-page-file="contact.html"] .contact-service,
  body[data-page-file="contact.html"] .contact-resources {
    padding: 20px;
  }
}
