/* ==========================================================================
   Contact us page (contact.html) — Figma 113:752, mobile 141:6692
   Depends on: variables.css, base.css, header.css, footer.css, style.css,
   forms.css. Behaviour: js/contact.js
   ========================================================================== */

.contact-hero .hero__title {
  line-height: 100px;
}

/* desktop decorations (the sparkle stays on phones, placed in style.css) */
@media (min-width: 1201px) {
  .contact-hero .hero__cursor {
    top: 85px;
    left: 294px;                 /* Figma: 194px inside the 100px-inset text box */
  }

  .contact-hero .hero__sparkle {
    top: 32px;
    right: 402px;
  }
}

/* ---- Message form: white card over the hero grid ---- */

.contact-form-section {
  position: relative;
  margin-top: -40px;             /* Figma: 60px from the hero text, page gap is 100px */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1032px;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid var(--color-zinc-400);
  border-radius: 20px;
  background: var(--color-white);
}

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

.field__input--area {
  height: 96px;                  /* Figma: 120px field incl. its 24px label */
  padding: 12px;
  border-radius: var(--radius-md);
  resize: vertical;
}

/* phone: country code dropdown + number, one box split by a line */
.phone-input {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.phone-input__code {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
}

.phone-input__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.phone-input__chevron {
  width: 20px;
  height: 20px;
  margin-left: -6px;             /* Figma: 2px after the code */
  pointer-events: none;
}

/* the select spans flag, code and chevron, so the whole block opens it */
.phone-input__select {
  position: static;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: -0.084px;
  color: var(--color-text-main);
  appearance: none;
  outline: none;
  cursor: pointer;
}

.phone-input__number {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px 0 12px;
  border: 0;
  border-left: 1px solid var(--color-stroke-soft);
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: -0.084px;
  color: var(--color-text-main);
  outline: none;
}

.phone-input__number::placeholder {
  color: var(--color-text-soft);
  opacity: 1;
}

.contact-form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact-form__send {
  height: 48px;
}

/* göndərilərkən: düymə solğun və basılmaz */
.contact-form__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

/* təşəkkür pəncərəsi: gövdə yoxdur, ona görə düymənin üstündə ikinci xətt lazım deyil */
.contact-sent .call-modal__foot {
  border-top: 0;
}

.contact-form__status {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-medium);
  color: var(--color-main-darker);
}

/* ---- Get in touch ---- */

.touch {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.touch__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-medium);
  text-align: center;
  color: var(--color-zinc-900);
}

.touch__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.touch-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-zinc-50);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.touch-card:hover {
  background: var(--color-main-light);
  transform: translateY(-4px);
}

.touch-card--wide {
  grid-column: 1 / -1;
}

.touch-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.touch-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
}

.touch-card__label {
  font-weight: var(--fw-semibold);
  color: var(--color-zinc-900);
}

.touch-card__value {
  color: var(--color-zinc-600);
}

.touch__map {
  height: 450px;
  overflow: hidden;
  border-radius: 20px;
  /* Figma's map screenshot, visible until (or if not) the live map loads */
  background: var(--color-zinc-100) url("../assets/images/contact/map.jpg") center / cover no-repeat;
}

.touch__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .contact-hero .hero__title {
    line-height: var(--lh-display);
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    margin-top: -44px;           /* Figma mobile: 20px from the hero text */
  }

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

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

  .touch {
    gap: 20px;
    margin-top: -44px;           /* Figma mobile: 20px under the form */
  }

  .touch__title {
    font-size: var(--fs-xl);
    line-height: var(--lh-xl);
  }

  .touch__cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* the map runs edge to edge on Figma mobile */
  .touch__map-wrap {
    padding-inline: 0;
  }

  .touch__map {
    height: 400px;
    border-radius: 0;
  }
}
