/* ==========================================================================
   Contact page (/contact-us). Loaded after /css/styles.css.
   Mobile matches the 390px Figma frame, desktop (1240px and up) the 1440px one.
   ========================================================================== */

/* ---------- Hero and contact form ---------- */

.contact-hero { background: var(--pink); padding: 48px 24px 56px; }
.contact-hero__inner { display: flex; flex-direction: column; gap: 32px; }
.contact-hero__copy { display: flex; flex-direction: column; gap: 32px; }
.contact-hero__title { font-weight: 600; font-size: 2.375rem; line-height: 2.625rem; letter-spacing: -0.0375rem; color: var(--ink); }
.contact-hero__text { color: var(--ink); }
/* The <picture> around the sticker takes no room in the layout */
.contact-hero__inner > picture { position: absolute; inset: 0; pointer-events: none; }
.contact-hero__sticker { position: absolute; right: 10px; top: -16.75px; width: 102px; max-width: none; }

.contact-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: 36px; background: var(--white);
}
.contact-card__title { font-family: var(--font-fun); font-weight: 400; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__row { display: flex; flex-direction: column; gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-field label,
.contact-topics legend { font-weight: 500; font-size: 1rem; line-height: 1.5rem; color: var(--ink); }
.contact-field input,
.contact-field textarea {
  display: block; width: 100%; margin: 0;
  border: 1.5px solid var(--black); border-radius: 14px; background: var(--white);
  font: inherit; font-size: 1rem; line-height: 1.5rem; color: var(--ink);
}
.contact-field input { height: 3.25rem; padding: 0 1rem; }
.contact-field textarea { height: 9rem; padding: 0.75rem 1rem; border-radius: 16px; resize: vertical; }

/* Topic: radios drawn as pill-shaped chips */
.contact-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-topics legend { padding: 0; margin-bottom: 10px; }
.contact-topics__options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 2.875rem; padding: 0 18px; border-radius: 100px; background: var(--vanilla);
  font-size: 1rem; line-height: 1.45; color: var(--ink); white-space: nowrap; cursor: pointer;
}
.contact-topics__options .chip:first-child { min-width: 150px; }
.chip input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 18px; height: 18px; margin: 0;
  border: 1px solid var(--black); border-radius: 50%; background: var(--white); cursor: pointer;
}
.chip input:checked {
  border-color: var(--red);
  background: radial-gradient(circle, var(--red) 0 5.5px, var(--white) 6px);
}

.contact-form__send { width: 100%; height: 3.5rem; }

/* ---------- Instagram ---------- */

.contact-ig { padding: 48px 24px; }
.contact-ig__card {
  display: flex; flex-direction: column; gap: 32px;
  padding: 24px; border-radius: 28px; background: var(--vanilla);
}
.contact-ig__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-ig__title { font-family: var(--font-fun); font-weight: 400; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); }
.contact-ig__text { color: var(--ink); }
.contact-ig__btn {
  gap: 10px; width: 100%; height: 3.25rem;
  border-color: var(--ink); background: var(--ink); color: var(--white);
}
.contact-ig__btn:hover { border-color: var(--black); background: var(--black); }
.contact-ig__icon { flex: none; }
.contact-ig__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-ig__photos img {
  width: 100%; height: 112px; object-fit: cover; border-radius: 14px; background: var(--white);
}

/* ==========================================================================
   Desktop: 1240px and up
   ========================================================================== */

@media (min-width: 1240px) {
  /* Hero */
  .contact-hero { padding: 96px 0 123px; }
  .contact-hero__inner { flex-direction: row; align-items: flex-start; justify-content: center; gap: 60px; }
  .contact-hero__copy { flex: 0 0 420px; gap: 28px; }
  .contact-hero__title { font-size: 4rem; line-height: 4rem; letter-spacing: -0.06rem; }
  .contact-hero__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .contact-hero__sticker { right: auto; left: calc(50% - 588.5px); top: 264.25px; width: 202.5px; }

  .contact-card { flex: 0 0 672px; padding: 44px; }
  .contact-card__title { font-size: 2rem; line-height: 1.2; }
  .contact-form__row { flex-direction: row; }
  .contact-form__row .contact-field { flex: 1; }
  .contact-field textarea { height: 9.375rem; }
  .contact-topics__options .chip:first-child { min-width: 154px; }
  .contact-form__send {
    width: 132px; padding: 0;
    font-family: var(--font); font-size: 0.9375rem; line-height: 1.375rem; letter-spacing: 0.0125rem; color: var(--white);
  }
  .contact-hero .form-status { margin-top: 0; }

  /* Instagram */
  .contact-ig { padding: 94px 0 0; height: 500px; }
  .contact-ig__card {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;
    width: 1152px; min-height: 312px; margin: 0 auto; padding: 56px; border-radius: 40px;
  }
  .contact-ig__copy { flex: 0 0 540px; }
  .contact-ig__title { font-size: 2.75rem; line-height: 1.4; }
  .contact-ig__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .contact-ig__btn {
    width: 268px; height: 3.25rem; padding: 0;
    font-family: var(--font); font-size: 0.9375rem; line-height: 1.375rem; letter-spacing: 0.0125rem; color: var(--white);
  }
  .contact-ig__btn:hover { color: var(--white); }
  .contact-ig__photos { flex: 0 0 468px; grid-template-columns: repeat(3, 148px); gap: 12px; }
  .contact-ig__photos img { height: 207px; border-radius: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-ig__btn:hover { box-shadow: 0 0.5rem 1.25rem -0.75rem rgba(15, 22, 28, 0.7); }
  .contact-ig__photos img { transition: transform 0.45s var(--ease-out); }
  .contact-ig__photos li { overflow: hidden; border-radius: 14px; }
  .contact-ig__photos li:hover img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1240px) {
  .contact-ig__photos li { border-radius: 20px; }
}
