.contact-page {
  min-height: 100vh;
}

.contact-hero {
  position: relative;
  padding: 2rem 0 5rem;
  overflow: hidden;
}

.contact-hero-media,
.contact-hero-overlay {
  position: absolute;
  inset: 0;
}

.contact-hero-media {
  background:
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  transform: scale(1.05);
}

.contact-hero-overlay {
  background:
    radial-gradient(circle at 82% 14%, rgba(245, 201, 79, 0.16), transparent 24%),
    radial-gradient(circle at 16% 22%, rgba(14, 165, 233, 0.14), transparent 24%),
    linear-gradient(125deg, rgba(8, 15, 28, 0.9) 0%, rgba(8, 15, 28, 0.58) 48%, rgba(8, 15, 28, 0.86) 100%);
}

.contact-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-hero-copy,
.contact-form-shell,
.contact-info-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.22);
}

.contact-hero-copy {
  padding: 2rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(145deg, rgba(9, 19, 35, 0.72), rgba(9, 19, 35, 0.42)),
    rgba(255, 255, 255, 0.04);
}

.contact-hero-copy h1 {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.contact-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.contact-highlight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-highlight-card {
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-highlight-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.contact-highlight-card p:last-child {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.contact-form-shell {
  padding: 1.75rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.72)),
    rgba(255, 255, 255, 0.74);
}

.contact-form-shell h2 {
  margin: 0.25rem 0 0.75rem;
}

.contact-form-intro {
  margin-bottom: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6c81;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(15, 43, 70, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--headings);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
}

.contact-form-note {
  margin: 0;
  font-size: 0.86rem;
}

.contact-details {
  padding: 0 0 5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-info-card {
  padding: 1.4rem;
  border-radius: 1.3rem;
  background: var(--highlight-light);
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: #0f2b46;
  background: linear-gradient(135deg, rgba(245, 201, 79, 0.95), rgba(14, 165, 233, 0.25));
}

.contact-info-card h3 {
  margin-bottom: 0.55rem;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.contact-info-card {
  overflow: hidden;
  min-width: 0;
}

.dark-theme .contact-form-shell {
  background:
    linear-gradient(150deg, rgba(17, 24, 39, 0.86), rgba(11, 18, 33, 0.78)),
    rgba(15, 23, 42, 0.74);
}

.dark-theme .contact-form-shell h2,
.dark-theme .contact-highlight-card strong {
  color: #fff;
}

.dark-theme .contact-highlight-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .contact-highlight-card p:last-child {
  color: #d1def0;
}

.dark-theme .contact-form label span {
  color: #d1def0;
}

.dark-theme .contact-form input,
.dark-theme .contact-form select,
.dark-theme .contact-form textarea {
  background: rgba(8, 15, 28, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e8f0ff;
}

.dark-theme .contact-info-card {
  background: rgba(15, 23, 42, 0.74);
}

@media screen and (max-width: 1050px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-shell {
    max-width: 42rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .contact-hero {
    padding-bottom: 4rem;
  }

  .contact-hero-copy,
  .contact-form-shell {
    padding: 1.4rem;
    border-radius: 1.35rem;
  }

  .contact-highlight-row,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}
