/* ========== CONTACT US PAGE ========== */

.contact-hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-height) + 64px) 0 72px;
  overflow: hidden;
  min-height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: center;
}

.contact-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.contact-hero__label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-hero__title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-hero__square {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  animation: accentSquareSpin 3.5s linear infinite;
  transform-origin: center center;
}

.contact-hero__desc {
  margin: 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* Panel: info + form */
.contact-panel {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #f5f5f5;
}

.contact-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px;
  background: #ededed;
  border-radius: 16px;
}

.contact-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: #222;
}

.contact-info__card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0a0a;
}

.contact-info__card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.contact-info__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info__phones a {
  color: #222;
  font-weight: 600;
}

.contact-info__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1ebe57 !important;
}

.contact-info__emails {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info__emails li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.92rem;
  color: #444;
}

.contact-info__emails span {
  min-width: 88px;
  font-weight: 600;
  color: #222;
}

.contact-info__emails a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form card */
.contact-form-wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  padding: clamp(24px, 4vw, 36px);
}

.contact-form__title {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0a0a;
}

.contact-form__field {
  margin-bottom: 14px;
}

.contact-form__field label {
  display: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #cfcfcf;
  background: #fff;
}

.contact-form__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form__phone:focus-within {
  border-color: #cfcfcf;
  background: #fff;
}

.contact-form__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-form__code {
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.contact-form__phone input {
  border: none;
  background: transparent;
  padding: 14px 0;
  border-radius: 0;
}

.contact-form__phone input:focus {
  background: transparent;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  min-height: 52px;
}

.contact-form__privacy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #888;
}

.contact-form__error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #c0392b;
}

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

  .contact-hero {
    min-height: 0;
    padding: calc(var(--header-height) + 40px) 0 48px;
  }
}

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

  .contact-form-wrap {
    padding: 20px 16px;
  }

  .contact-info__card {
    padding: 18px 16px;
  }

  .contact-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
}
