/* =========================================================
   CONTACT PAGE
   User-facing Capital Chain support and contact page.
   ========================================================= */

.contact-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 36%, rgba(2, 81, 255, 0.045), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(2, 81, 255, 0.04), transparent 26%),
    #0b0d0f;
}

.contact-eyebrow,
.contact-section-index,
.contact-panel-label,
.contact-resource-label {
  color: #397dff;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-text-link,
.contact-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: #eef2f6;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.22s ease;
}

.contact-text-link span,
.contact-resource-link span {
  transition: transform 0.22s ease;
}
.contact-text-link:hover,
.contact-resource-link:hover {
  color: #79a5ff;
}
.contact-text-link:hover span,
.contact-resource-link:hover span {
  transform: translateX(3px);
}

/* HERO */
.contact-hero {
  position: relative;
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 82px 0 94px;
  display: block;
  text-align: center;
  isolation: isolate;
}

.contact-hero-ambient {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: -260px;
  width: 900px;
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(2, 81, 255, 0.2) 0%,
    rgba(2, 81, 255, 0.09) 31%,
    rgba(2, 81, 255, 0.025) 51%,
    rgba(2, 81, 255, 0) 72%
  );
  filter: blur(8px);
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.contact-hero h1 {
  max-width: 900px;
  margin: 22px auto 26px;
  color: #f8f8f9;
  font-size: clamp(58px, 5.25vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.054em;
  font-weight: 600;
}

.contact-hero-copy > p {
  max-width: 760px;
  margin: 0 auto;
  color: #d0d4da;
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.contact-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 38px;
}

/* OVERVIEW */
.contact-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 88px;
  align-items: center;
  padding-top: 108px;
  padding-bottom: 118px;
}

.contact-overview-heading {
  max-width: 610px;
}
.contact-overview-heading .contact-section-index {
  display: block;
  margin-bottom: 22px;
}

.contact-overview-heading h2,
.contact-section-heading h2,
.contact-form-heading h2 {
  margin: 0;
  color: #f5f5f6;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.contact-overview-copy {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-overview-copy p {
  margin: 0 0 25px;
  color: #c4c8cf;
  font-size: 19px;
  line-height: 1.74;
}
.contact-overview-copy p:last-child {
  margin-bottom: 0;
}

/* SECTIONS */
.contact-section {
  position: relative;
  padding-top: 110px;
  padding-bottom: 118px;
  scroll-margin-top: 130px;
}

.contact-alt {
  background:
    radial-gradient(circle at 6% 30%, rgba(2, 81, 255, 0.05), transparent 27%),
    #10141b;
}

.contact-section-heading {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.contact-section-heading .contact-section-index {
  display: block;
  margin-bottom: 22px;
}
.contact-section-heading p {
  max-width: 760px;
  margin: 22px auto 0;
  color: #b8bdc5;
  font-size: 18px;
  line-height: 1.68;
}

/* FORM */
.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.contact-form-wrap {
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 26px;
  background:
    radial-gradient(circle at 7% 0%, rgba(2, 81, 255, 0.08), transparent 34%),
    #0f1319;
}

.contact-form-heading .contact-section-index {
  display: block;
  margin-bottom: 20px;
}
.contact-form-heading p {
  max-width: 700px;
  margin: 19px 0 0;
  color: #aeb4bd;
  font-size: 16px;
  line-height: 1.67;
}

.contact-form {
  margin-top: 36px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-field {
  margin-bottom: 20px;
}
.contact-field label {
  display: block;
  margin-bottom: 9px;
  color: #dce0e6;
  font-size: 14px;
  font-weight: 600;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  outline: none;
  background: #0c1016;
  color: #f4f5f6;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.contact-field input,
.contact-field select {
  height: 56px;
  padding: 0 17px;
}
.contact-field textarea {
  min-height: 170px;
  resize: vertical;
  padding: 16px 17px;
  line-height: 1.6;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #747c88;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(2, 81, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(2, 81, 255, 0.08);
  background: #0d121a;
}
.contact-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f8792 50%),
    linear-gradient(135deg, #7f8792 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 24px,
    calc(100% - 16px) 24px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.contact-form-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 28px;
}
.contact-note-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #0251ff;
  box-shadow: 0 0 12px rgba(2, 81, 255, 0.7);
}
.contact-form-note p {
  margin: 0;
  color: #949ba5;
  font-size: 13px;
  line-height: 1.55;
}
.contact-submit {
  border: 0;
  cursor: pointer;
}

/* HELP PANEL */
.contact-help-panel {
  padding: 32px;
  border: 1px solid rgba(2, 81, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 3%, rgba(2, 81, 255, 0.11), transparent 35%),
    #0e131b;
}
.contact-help-panel h3 {
  margin: 24px 0 26px;
  color: #f3f4f6;
  font-size: 28px;
  line-height: 1.23;
  letter-spacing: -0.035em;
}
.contact-help-list {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.contact-help-list > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-help-list span {
  color: #6e9bff;
  font-size: 12px;
  font-weight: 600;
}
.contact-help-list p {
  margin: 0;
  color: #b5bbc4;
  font-size: 14px;
  line-height: 1.6;
}

/* TOPICS */
.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 56px auto 0;
}
.contact-topic-card {
  min-height: 245px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 22px;
  background: #0f1319;
  transition:
    transform 0.23s ease,
    border-color 0.23s ease,
    background 0.23s ease;
}
.contact-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 81, 255, 0.26);
  background: #11161e;
}
.contact-topic-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(2, 81, 255, 0.42);
  border-radius: 13px;
  color: #8db4ff;
  font-size: 12px;
  font-weight: 600;
}
.contact-topic-card h3 {
  margin: 28px 0 13px;
  color: #f4f5f6;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.032em;
}
.contact-topic-card p {
  margin: 0;
  color: #adb3bc;
  font-size: 15px;
  line-height: 1.67;
}

/* SECURITY */
.contact-security-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 31px 32px;
  border: 1px solid rgba(2, 81, 255, 0.3);
  border-radius: 23px;
  background:
    radial-gradient(circle at 5% 50%, rgba(2, 81, 255, 0.13), transparent 31%),
    #10151d;
}
.contact-security-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(97, 145, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 81, 255, 0.12);
  font-size: 22px;
  font-weight: 700;
}
.contact-security-copy > span {
  color: #6d9bff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-security-copy h3 {
  margin: 10px 0 9px;
  color: #f5f6f8;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.contact-security-copy p {
  max-width: 760px;
  margin: 0;
  color: #b7bdc6;
  font-size: 15px;
  line-height: 1.65;
}

/* RESOURCES */
.contact-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 56px auto 0;
}
.contact-resource-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: #0f1319;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}
.contact-resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 81, 255, 0.3);
  background: #111722;
}
.contact-resource-card h3 {
  margin: 27px 0 13px;
  color: #f5f6f7;
  font-size: 25px;
  line-height: 1.23;
  letter-spacing: -0.034em;
}
.contact-resource-card p {
  margin: 0;
  color: #adb3bc;
  font-size: 15px;
  line-height: 1.66;
}
.contact-resource-link {
  margin-top: auto;
  padding-top: 28px;
}
.contact-cta {
  padding-top: 0;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .contact-resource-grid {
    grid-template-columns: 1fr;
  }
  .contact-resource-card {
    min-height: 235px;
  }
}

@media (max-width: 900px) {
  .contact-overview {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 94px;
    padding-bottom: 104px;
  }
  .contact-section {
    padding-top: 94px;
    padding-bottom: 104px;
  }
  .contact-security-panel {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .contact-security-panel .contact-text-link {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .contact-hero {
    width: calc(100% - 38px);
    padding: 64px 0 72px;
  }
  .contact-eyebrow,
  .contact-section-index,
  .contact-panel-label,
  .contact-resource-label {
    font-size: 11px;
  }
  .contact-hero h1 {
    margin-top: 18px;
    font-size: 45px;
    letter-spacing: -0.047em;
  }
  .contact-hero-copy > p {
    font-size: 16px;
    line-height: 1.62;
  }
  .contact-hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 30px;
  }
  .contact-hero-actions .button {
    min-height: 50px;
    padding: 0 18px;
    font-size: 13px;
    white-space: nowrap;
  }
  .contact-hero-actions .contact-text-link {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }
  .contact-overview {
    padding-top: 76px;
    padding-bottom: 86px;
  }
  .contact-overview-heading h2,
  .contact-section-heading h2,
  .contact-form-heading h2 {
    font-size: 34px;
  }
  .contact-overview-copy p,
  .contact-section-heading p {
    font-size: 16px;
  }
  .contact-section {
    padding-top: 76px;
    padding-bottom: 86px;
  }
  .contact-section-heading .contact-section-index {
    margin-bottom: 16px;
  }
  .contact-form-wrap,
  .contact-help-panel {
    padding: 26px 24px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-topic-grid,
  .contact-resource-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }
  .contact-topic-card,
  .contact-resource-card {
    min-height: auto;
    padding: 25px;
  }
  .contact-security-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 44px;
    padding: 25px;
  }
  .contact-security-panel .contact-text-link {
    grid-column: auto;
  }
  .contact-security-copy h3 {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .contact-hero-actions {
    gap: 10px;
  }
  .contact-hero-actions .button {
    min-height: 48px;
    padding: 0 14px;
    font-size: 12px;
  }
  .contact-hero-actions .contact-text-link {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-topic-card,
  .contact-resource-card {
    transition: none !important;
  }
}

/* =========================================================
   CONTACT FORM FUNCTIONALITY ADDITIONS
   Loaded after contact.css so the existing page design is preserved.
   ========================================================= */

.contact-honeypot{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

.contact-direct-support h3{
  margin:22px 0 22px;
}

.contact-direct-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.contact-direct-link{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  padding:14px 15px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:#0c1016;
  transition:border-color .2s ease,background .2s ease;
}

.contact-direct-link:hover{
  border-color:rgba(2,81,255,.32);
  background:#0e141e;
}

.contact-direct-link span{
  color:#6d9bff;
  font-size:10px;
  line-height:1;
  font-weight:600;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.contact-direct-link strong{
  max-width:100%;
  color:#e1e5eb;
  font-size:14px;
  line-height:1.45;
  font-weight:500;
  overflow-wrap:anywhere;
}

.contact-help-divider{
  height:1px;
  margin:28px 0;
  background:rgba(255,255,255,.08);
}

.contact-form-status{
  margin:0 0 20px;
  padding:13px 15px;
  border-radius:13px;
  font-size:13px;
  line-height:1.55;
}

.contact-form-status.is-success{
  border:1px solid rgba(71,191,124,.24);
  background:rgba(71,191,124,.075);
  color:#c9f2d9;
}

.contact-form-status.is-error{
  border:1px solid rgba(255,102,102,.24);
  background:rgba(255,102,102,.065);
  color:#ffd0d0;
}

.contact-submit:disabled{
  cursor:not-allowed;
  opacity:.68;
  filter:none;
}

.contact-server-messages{
  margin:22px 0 0;
}

.contact-server-message{
  margin:0 0 10px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  background:#0c1016;
  color:#cbd1da;
  font-size:13px;
  line-height:1.55;
}

.contact-server-message.success{
  border-color:rgba(71,191,124,.24);
  background:rgba(71,191,124,.075);
  color:#c9f2d9;
}

.contact-server-message.error{
  border-color:rgba(255,102,102,.24);
  background:rgba(255,102,102,.065);
  color:#ffd0d0;
}
