/* ============== Contact V2 page ============== */

/* Header is fixed; clear topbar (40px) + header (76px) */
.contact-main {
  padding-top: var(--header-h);
  background: #f5f5f5;
}

/* ============== Section ============== */

.contact {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  background: #f5f5f5;
}

.contact__container {
  max-width: 920px;
}

/* ============== Title ============== */

.contact__title {
  text-align: center;
  font-family: "Ysabeau Office", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--color-dark);
  margin: 0 0 clamp(28px, 4vw, 48px);
}

/* ============== Dividers ============== */

.contact__divider {
  height: 1px;
  background: #d8d8d8;
  margin: clamp(20px, 4vw, 20px) 0;
}

.contact__divider--inline {
  list-style: none;
  margin: clamp(20px, 4vw, 20px) 0;
}

/* ============== Info blocks ============== */

.contact__info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 32px);
  padding-left: clamp(12px, 4vw, 56px);
}

.contact-info__icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: block;
}

.contact-info__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-info__body {
  padding-top: 4px;
}

.contact-info__label {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  font-weight: bold;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}

.contact-info__body p {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: #3a3a3a;
  line-height: 1.55;
  margin: 0;
}

/* ============== Form intro ============== */

.contact__form-intro {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  margin: 60px 0 clamp(20px, 3vw, 32px);
  text-align: left;
}

/* ============== Form ============== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__field {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  outline: none;
  font-family: "Ysabeau Office", Georgia, serif;
  font-size: 1rem;
  color: var(--color-dark);
  transition: box-shadow 0.2s var(--ease);
}

.contact-form__field::placeholder {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.02em;
  color: #b8b8b8;
}

.contact-form__field:focus {
  box-shadow: 0 0 0 2px var(--color-lime);
}

.contact-form__field--textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.5;
  font-family: "Ysabeau Office", Georgia, serif;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.contact-form__submit {
  padding: 14px 44px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============== Bottom row (social + address) ============== */

.contact__bottom {
  display: flex;
  align-items: center;
  justify-content: normal;
  gap: clamp(24px, 4vw, 56px);
  padding-left: 0;
}

.contact__social {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.contact__social a {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.contact__social a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.contact__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact__address {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #5a5a5a;
  line-height: 1.7;
  text-align: left;
}

/* ============== Thank You modal ============== */

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.thanks-modal.is-open {
  display: grid;
  place-items: center;
  padding: 16px;
}

.thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(4px);
  animation: thanks-fade-in 0.25s var(--ease);
}

.thanks-modal__panel {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  padding: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 48px);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  animation: thanks-pop-in 0.32s var(--ease);
}

.thanks-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #9a9a9a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.thanks-modal__close:hover {
  color: var(--color-dark);
  transform: rotate(90deg);
}

.thanks-modal__badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-lime);
  color: var(--color-dark);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.thanks-modal__badge svg {
  width: 36px;
  height: 36px;
}

.thanks-modal__title {
  font-family: "Ysabeau Office", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--color-dark);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.thanks-modal__text {
  font-family: "Ysabeau Office", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0 0 26px;
}

.thanks-modal__cta {
  padding: 12px 36px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

@keyframes thanks-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes thanks-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 899px) {
  .contact__bottom {
    padding-left: 0;
  }
  .contact-info {
    padding-left: 0;
  }
}

@media (max-width: 639px) {
  .contact-info {
    gap: 16px;
  }
  .contact-info__icon {
    width: 52px;
    height: 52px;
  }
  .contact-info__label {
    font-size: 1rem;
  }
  .contact-info__body p {
    font-size: 0.875rem;
  }
  .contact__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .contact__address {
    text-align: left;
    max-width: 100%;
  }
  .contact-form__actions {
    justify-content: stretch;
  }
  .contact-form__submit {
    width: 100%;
  }
}
