.contact-page {
  padding: 60px 0 90px;
  background: #fcfcfc;
}

.contact-page__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.contact-page__header h1 {
  color: var(--title-color);
  font-family: var(--somar-Bold);
  font-size: 40px;
  margin-bottom: 14px;
}

.contact-page__header p {
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: stretch;
}

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

/* ---- Info panel ---- */
.contact-info {
  position: relative;
  border-radius: 24px;
  padding: 44px 34px;
  background: linear-gradient(160deg, var(--primary-color) 0%, #003a8c 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.contact-info__title {
  font-family: var(--somar-Bold);
  font-size: 22px;
  margin: 0;
  position: relative;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.contact-info__item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-info__item__body span {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 3px;
}

.contact-info__item__body strong,
.contact-info__item__body a {
  font-family: var(--somar-Bold);
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.contact-info__socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
  position: relative;
}

.contact-info__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s, transform 0.25s;
}

.contact-info__socials a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* ---- Form panel ---- */
.contact-form-card {
  border-radius: 24px;
  padding: 44px 38px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 30, 80, 0.08);
  border: 1px solid #eef1f6;
  position: relative;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 575px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-field {
  position: relative;
  margin-bottom: 20px;
}

.contact-field__icon {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  color: var(--primary-color);
  opacity: 0.55;
  font-size: 15px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1.5px solid #e6e9f0;
  border-radius: 12px;
  padding-block: 14px;
  padding-inline-start: 42px;
  padding-inline-end: 16px;
  font-family: var(--somar-Light);
  font-size: 15px;
  color: var(--title-color);
  background: #f9fafc;
  transition: border-color 0.2s, background 0.2s;
}

.contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
}

.contact-field.has-error input,
.contact-field.has-error textarea {
  border-color: #e35757;
}

.contact-field__error {
  display: none;
  color: #e35757;
  font-size: 12.5px;
  margin-top: 6px;
}

.contact-field.has-error .contact-field__error {
  display: block;
}

.contact-submit {
  border: none;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary-color), #135dc4);
  color: #fff;
  font-family: var(--somar-Bold);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 71, 171, 0.25);
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form-status {
  display: none;
  text-align: center;
  padding: 50px 20px;
}

.contact-form-status.is-visible {
  display: block;
}

.contact-form-status__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(57, 181, 54, 0.12);
  color: var(--secondary-color);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.contact-form-status__text {
  font-family: var(--somar-Bold);
  font-size: 18px;
  color: var(--title-color);
  margin: 0;
}

.contact-form.is-hidden {
  display: none;
}

.contact-form-alert {
  display: none;
  background: #fdecec;
  color: #b42323;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-form-alert.is-visible {
  display: block;
}

/* ---- Map ---- */
.contact-map-wrap {
  margin-top: 34px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 30, 80, 0.08);
  border: 1px solid #eef1f6;
}

.contact-map-wrap__title {
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--somar-Bold);
  color: var(--title-color);
  font-size: 16px;
}

.contact-map {
  height: 420px;
  width: 100%;
}

.contact-map .leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.contact-map-pulse {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map-pulse__dot {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0, 71, 171, 0.5);
}

.contact-map-pulse__ring {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
}

.contact-map-pulse.is-landed .contact-map-pulse__ring {
  animation: contactMapRadar 2.4s cubic-bezier(0.25, 0.6, 0.4, 1) infinite;
}

.contact-map-pulse.is-landed .contact-map-pulse__ring--delay {
  animation-delay: 1.2s;
}

@keyframes contactMapRadar {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(4.6);
    opacity: 0;
  }
}
