/* ==========================================================================
   Contact us page — Figma "Contact us" 5469:5255 / "Mob_Contact us" 5499:16681
   ========================================================================== */
.page-contact { background: #f9f9f9; }
.ct-h2 { font-size: 48px; line-height: 56px; font-weight: 600; color: var(--c-heading); }

/* ---------- Hero ---------- */
.ct-top { background: linear-gradient(-43.65deg, #fefefe 54.04%, #fef5f6 70.31%, #fefafa 89%); }
.ct-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 460px; }
.ct-hero__content { width: 645px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; }
.ct-hero__title { font-size: 64px; line-height: 72px; font-weight: 600; color: var(--c-heading); }
.ct-hero__text { font-size: 18px; line-height: 26px; color: var(--c-text); }
.ct-hero__actions { display: flex; gap: 24px; }
.ct-hero__wa { border-color: var(--c-text); color: #000; font-weight: 600; }
.ct-hero__media { width: 572px; height: 382px; flex: none; }
.ct-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Form + direct contact ---------- */
.ct-contact { background: var(--c-white); padding-block: 100px; }
.ct-contact__inner { display: flex; align-items: stretch; gap: 40px; }
.ct-contact__main { width: 778px; flex: 0 1 778px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ct-contact__head { display: flex; flex-direction: column; gap: 24px; }
.ct-contact__head p { font-size: 16px; line-height: 24px; color: var(--c-text); }

.ct-form { display: flex; flex-direction: column; gap: 24px; }
.ct-form__row { display: flex; gap: 16px; }
.ct-form__row > .ct-field { flex: 1 1 0; min-width: 0; }
.ct-field { position: relative; display: flex; flex-direction: column; isolation: isolate; }
.ct-field__label {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; height: 20px;
  margin: 0 0 -9px 8px; padding: 0 4px 0 14px; border-radius: var(--radius-pill);
  background: var(--c-white); font-size: 14px; line-height: 20px; color: var(--c-text); white-space: nowrap;
  text-box: normal;
}
.ct-field__label .text-primary { margin-left: 4px; }
.ct-field__input {
  position: relative; z-index: 1; width: 100%; height: 52px;
  padding: 2px 12px 0 24px; border: 1px solid var(--c-stroke); border-radius: 1000px;
  background: #fbfbfb; font-size: 16px; line-height: 24px; color: var(--c-blue-900);
  outline: none; transition: border-color .15s ease, background-color .15s ease;
}
.ct-field__input::placeholder { color: var(--c-blue-900); opacity: 1; }
.ct-field__input:hover { border-color: #bdbdbd; }
.ct-field__input:focus { border-color: #000; background: var(--c-white); }
.ct-field__textarea { height: 144px; padding: 19px 16px 16px 24px; border-radius: 24px; resize: vertical; }

.ct-subject { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ct-subject__legend { float: left; margin: 0 0 10px 8px; }
.ct-subject__options { clear: both; display: flex; gap: 10px; }
.ct-radio {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 14px;
  padding: 8px 16px 8px 10px; border: 1px solid var(--c-stroke); border-radius: var(--radius-pill);
  cursor: pointer; text-box: normal; transition: border-color .15s ease, background-color .15s ease;
}
.ct-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ct-radio__dot { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid #363644; background: var(--c-white); }
.ct-radio__text { font-size: 16px; line-height: 24px; color: var(--c-blue-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-radio:has(input:checked) { background: rgba(243, 41, 41, 0.07); border-color: var(--c-primary); }
.ct-radio input:checked ~ .ct-radio__dot { border-color: var(--c-primary); background: var(--c-primary) url("/assets/icons/contact-check-white.svg") center / 10px 8px no-repeat; }
.ct-radio input:checked ~ .ct-radio__text { color: var(--c-primary); }
.ct-radio input:focus-visible ~ .ct-radio__dot { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.ct-form__submit { width: 192px; }

.ct-direct {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 36px;
  padding: 32px 24px 24px; border: 1px solid rgba(243, 41, 41, 0.36); border-radius: 24px;
  background: linear-gradient(-13.72deg, rgba(243, 41, 41, 0) 6.63%, rgba(243, 41, 41, 0.11) 182.9%), var(--c-white);
}
.ct-direct__title { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--c-heading); }
.ct-direct__list { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ct-direct__item { display: flex; align-items: flex-start; gap: 24px; text-box: normal; }
.ct-direct__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none; border-radius: var(--radius-pill); background: #ffe4eb; }
.ct-direct__icon--green { background: #deffed; }
.ct-direct__icon img { width: 32px; height: 32px; }
.ct-direct__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 64px; max-width: 294px; min-width: 0; }
.ct-direct__label { font-size: 18px; line-height: 26px; font-weight: 500; color: #000; }
.ct-direct__desc { font-size: 16px; line-height: 24px; color: var(--c-text); font-style: normal; }
.ct-direct__value { font-size: 18px; line-height: 24px; font-weight: 600; color: #000; }
.ct-direct__value--mail { font-weight: 500; line-height: 26px; }
.ct-direct__value:hover { color: var(--c-primary); }

/* ---------- Map ---------- */
.ct-map { padding-block: 80px; }
.ct-map__inner { display: flex; flex-direction: column; gap: 48px; }
.ct-map__frame { position: relative; height: 540px; border: 10px solid var(--c-white); border-radius: 24px; overflow: hidden; background: #e9eaee; }
.ct-map__img { width: 100%; height: 100%; object-fit: cover; }
.ct-map__pin { position: absolute; left: 31.8%; top: 186px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ct-map__tip { display: flex; flex-direction: column; align-items: center; }
.ct-map__address { display: block; padding: 10px; border-radius: 8px; background: #000; color: var(--c-white); font-size: 16px; line-height: 24px; text-align: center; white-space: nowrap; }
.ct-map__arrow { width: 12px; height: 6px; }
.ct-map__marker { width: 27px; height: 41px; transition: transform .2s ease; }
.ct-map__pin:hover .ct-map__marker { transform: translateY(-3px); }

/* ---------- ≤1200 ---------- */
@media (max-width: 1200px) {
  .ct-hero__title { font-size: 52px; line-height: 60px; }
  .ct-hero__media { width: 45%; height: auto; aspect-ratio: 572 / 382; flex: 0 1 auto; }
  .ct-contact__main { flex-basis: 60%; }
}

/* ---------- ≤1024 ---------- */
@media (max-width: 1024px) {
  .ct-hero { flex-direction: column; align-items: stretch; padding-top: 48px; padding-bottom: 40px; min-height: 0; }
  .ct-hero__content { width: 100%; align-items: center; text-align: center; }
  .ct-hero__actions { justify-content: center; }
  .ct-hero__media { width: 100%; max-width: 640px; margin-inline: auto; }
  .ct-contact__inner { flex-direction: column; }
  .ct-contact__main { width: 100%; flex: none; }
  .ct-map__pin { left: 50%; transform: translateX(-50%); }
}

/* ---------- Mobile (430 frame) ---------- */
@media (max-width: 768px) {
  .ct-h2 { font-size: 32px; line-height: 40px; }

  .ct-hero { padding-top: 48px; padding-bottom: 0; gap: 40px; }
  .ct-hero__content { gap: 24px; }
  .ct-hero__title { font-size: 40px; line-height: 48px; }
  .ct-hero__actions { width: 100%; gap: 16px; }
  .ct-hero__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; gap: 8px; }
  .ct-hero__media { aspect-ratio: 1536 / 1024; max-width: none; }

  .ct-contact { padding-block: 40px; }
  .ct-contact__main { gap: 32px; }
  .ct-contact__head { align-items: center; text-align: center; gap: 24px; }
  .ct-form__row { flex-direction: column; gap: 16px; }
  .ct-radio { gap: 8px; padding-right: 10px; }
  .ct-radio__text { font-size: 14px; }
  .ct-field__textarea { height: 144px; }
  /* Figma mobile frame shows only the form; direct-contact card is hidden there */
  .ct-direct { display: none; }

  .ct-map { padding-block: 40px; }
  .ct-map__inner { gap: 24px; }
  .ct-map__inner .ct-h2 { text-align: center; }
  .ct-map__frame { height: 241px; border: 0; border-radius: 16px; }
  .ct-map__pin { top: 68px; }
  .ct-map__address { font-size: 14px; line-height: 20px; padding: 8px 10px; }
}
@media (max-width: 400px) {
  .ct-hero__actions { flex-direction: column; }
  .ct-subject__options { flex-direction: column; }
}
