.contact-page {
  background: var(--bg-soft, #f4f7fb);
}

.contact-hero .page-hero-lead {
  max-width: 38rem;
}

.contact-breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.contact-breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
}

.contact-breadcrumb a:hover {
  text-decoration: underline;
}

.contact-breadcrumb span[aria-current] {
  font-weight: 600;
}

.contact-breadcrumb--hero {
  color: rgba(255, 255, 255, 0.82);
}

.contact-breadcrumb--hero a {
  color: #fff;
  opacity: 0.9;
}

.contact-breadcrumb--hero span[aria-current] {
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.75rem;
  align-items: start;
}

.contact-form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.85rem 1.75rem 1.65rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 34, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  background: rgba(170, 34, 46, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.contact-form-card__title {
  color: var(--brand-primary);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.contact-form-card__lead {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.contact-field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
}

.contact-input {
  position: relative;
}

.contact-input > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-accent);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.contact-input--area > i {
  top: 1rem;
  transform: none;
}

.contact-input .form-control {
  border-radius: 12px;
  border: 1px solid rgba(17, 79, 180, 0.18);
  padding: 0.68rem 0.9rem 0.68rem 2.5rem;
  font-size: 0.92rem;
  background: #fafbfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-input .form-control:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 58, 117, 0.12);
}

.contact-input .form-control::placeholder {
  color: #9aa5b5;
}

.contact-input textarea.form-control {
  min-height: 130px;
  resize: vertical;
  padding-top: 0.75rem;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-note {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6f9ff 0%, #eef3ff 100%);
  border: 1px solid rgba(23, 48, 88, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-info-panel {
  position: sticky;
  top: calc(var(--site-nav-height, 76px) + 1rem);
  display: grid;
  gap: 1rem;
}

.contact-info-panel__card {
  background: linear-gradient(160deg, var(--brand-primary) 0%, #254a7a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.65rem 1.5rem;
  box-shadow: 0 18px 40px rgba(23, 48, 88, 0.22);
}

.contact-info-panel__card h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-panel__card h2 i {
  color: var(--brand-accent);
  font-size: 1.1rem;
}

.contact-address__text {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 1.15rem;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-detail-row__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-detail-row a {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-detail-row a:hover {
  text-decoration: underline;
}

.contact-map-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: saturate(0.95);
}

.contact-map-pin {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-map-pin i {
  color: var(--brand-accent);
}

.contact-help-band {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1e3d66 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.75rem 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.contact-help-band h3 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.contact-help-band p {
  margin: 0;
  color: #fff;
  opacity: 0.92;
  font-size: 0.92rem;
}

.contact-help-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-help-band__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-help-band__links a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.contact-feedback {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-feedback.is-success {
  color: #1f7a4c;
}

.contact-feedback.is-error {
  color: var(--brand-accent);
}

@media (max-width: 991.98px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .contact-form-card {
    padding: 1.35rem 1.1rem;
  }

  .contact-map-wrap iframe {
    height: 260px;
  }

  .contact-help-band__links {
    width: 100%;
  }

  .contact-help-band__links a {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }
}
