:root {
  --contact-bg: #ffffff;
  --contact-surface: rgba(255, 255, 255, 0.88);
  --contact-surface-solid: #ffffff;
  --contact-border: #e8eef4;
  --contact-border-strong: #dbe5ee;
  --contact-text-soft: #5f6b76;
  --contact-text-muted: #8a96a3;
  --contact-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  --contact-shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.1);
}

/* Base */
.contact-page {
  background: var(--contact-bg);
  color: var(--text-color);
}

.contact-page section {
  position: relative;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-color);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.section-heading p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--contact-text-soft);
}

/* Hero */
.contact-hero {
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.92)
    ),
    url("../media/tridentu-contact.webp") no-repeat center center/cover;
  overflow: hidden;
}

.contact-hero-inner {
  max-width: 850px;
  margin: 0 auto;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 191, 255, 0.14);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  letter-spacing: 0.01em;
}

.contact-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--text-color);
}

.contact-hero p {
  max-width: 690px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #4f5b66;
}

/* Shared layout */
.contact-overview,
.team-section,
.contact-form-section {
  padding: 5.5rem 1.5rem;
}

.contact-overview-grid,
.team-grid,
.form-shell {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;
}

/* Overview cards */
.contact-overview {
  padding-top: 0;
  margin-top: -2.25rem;
  z-index: 5;
}

.contact-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
}

.quick-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 26px;
  background: var(--contact-surface);
  border: 1px solid rgba(232, 238, 244, 0.95);
  box-shadow: var(--contact-shadow);
  backdrop-filter: blur(10px);
}

.quick-contact-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f9ff 0%, #e8f6ff 100%);
  color: var(--primary);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.06);
}

.quick-contact-content h2 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-color);
}

.quick-contact-content p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--contact-text-soft);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.25s ease;
}

.contact-link:hover {
  opacity: 0.78;
}

/* Team section */
.team-section {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 191, 255, 0.06),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--contact-surface-solid);
  border: 1px solid var(--contact-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--contact-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--contact-shadow-hover);
  border-color: var(--contact-border-strong);
}

.team-photo-wrap {
  padding: 1rem 1rem 0;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4fbff 0%, #eaf5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.05);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo i {
  font-size: 4.6rem;
  color: #9aa6b2;
}

.team-info {
  padding: 1.45rem 1.4rem 1.55rem;
}

.team-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: #eff8ff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.team-role {
  font-size: 0.94rem;
  color: #697582;
  font-weight: 600;
}

.team-info h3 {
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.team-text {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #55606c;
}

.team-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: fit-content;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.team-contact-item i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 0.98rem;
}

.team-contact-item:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* Form */
.contact-form-section {
  background: #ffffff;
}

.form-heading {
  margin-bottom: 2.2rem;
}

.form-shell {
  max-width: 900px;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--contact-border);
  border-radius: 32px;
  box-shadow: var(--contact-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.55rem;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d9e2ea;
  border-radius: 18px;
  background: #fbfdff;
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-color);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--contact-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.08);
  background: #ffffff;
}

.honeypot {
  display: none;
}

.submit-btn {
  align-self: flex-start;
  min-width: 180px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 191, 255, 0.22);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.submit-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Alerts */
.alert {
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert-success {
  background: #eefaf3;
  color: #13673b;
  border-color: #c9ecd7;
}

.alert-error {
  background: #fff3f3;
  color: #b52f2f;
  border-color: #f2cccc;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: 72vh;
    padding-top: 7rem;
  }

  .contact-overview-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .form-shell {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-overview,
  .team-section,
  .contact-form-section {
    padding: 4.2rem 1rem;
  }

  .contact-hero {
    min-height: 66vh;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .quick-contact-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .team-card {
    border-radius: 26px;
  }

  .team-photo {
    aspect-ratio: 4 / 4.8;
    border-radius: 20px;
  }

  .team-info {
    padding: 1.2rem 1.1rem 1.25rem;
  }

  .team-info h3 {
    font-size: 1.45rem;
  }

  .team-text {
    font-size: 0.98rem;
  }

  .form-shell {
    padding: 1.1rem;
    border-radius: 26px;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-kicker {
    font-size: 0.82rem;
  }

  .contact-hero h1 {
    font-size: 2.2rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .team-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-contact-item {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    border-radius: 16px;
    padding: 0.95rem;
  }
}
