/* =============================================
   CONTACTS PAGE — Сторінка контактів
   Палітра: brand #E94290, ink #570029,
   bg-pink #FFEFF6, teal #30A4AE
   ============================================= */

/* ─────────────────────────────
   HERO
───────────────────────────── */
.contacts-hero {
  position: relative;
  background: #E94290;
  border-bottom-left-radius: 120px;
  border-bottom-right-radius: 120px;
  margin-top: -4px;
  padding: clamp(56px, 10vw, 120px) clamp(24px, 5vw, 80px) clamp(64px, 11vw, 140px);
  text-align: center;
  overflow: hidden;
}

.contacts-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.contacts-hero__eyebrow {
  margin: 0 0 8px;
  font-family: "Kobzar KS", "Commissioner", sans-serif;
  font-size: clamp(24px, 4vw, 52px);
  color: #570029;
  line-height: 1.1;
}

.contacts-hero__title {
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #FFEFF6;
}

.contacts-hero__sub {
  margin: 0;
  font-family: "Commissioner", sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.6;
  color: #fff;
  opacity: .9;
}

/* Декоративні кульки */
.contacts-hero__ball {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  pointer-events: none;
}
.contacts-hero__ball--1 { width: 200px; height: 200px; top: -60px; left: -60px; }
.contacts-hero__ball--2 { width: 140px; height: 140px; bottom: -40px; right: 8%; }
.contacts-hero__ball--3 { width: 80px;  height: 80px;  top: 30%;    right: 20%; }

/* ─────────────────────────────
   КАРТКИ КОНТАКТІВ
───────────────────────────── */
.contacts-cards {
  margin-top: clamp(-48px, -6vw, -80px); /* виїжджають поверх hero */
  position: relative;
  z-index: 2;
  padding: 0 clamp(16px, 4vw, 60px);
}

.contacts-cards__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.ccard {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 2px solid transparent;
}
.ccard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

.ccard__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.ccard__icon svg { width: 24px; height: 24px; }

/* Кольори по типу */
.ccard--phone  { border-color: #FFDCEC; }
.ccard--phone  .ccard__icon { background: #FFEFF6; color: #E94290; }
.ccard--instagram .ccard__icon { background: #FFF0FA; color: #C13584; }
.ccard--instagram:hover { border-color: #F9A8D4; }
.ccard--facebook .ccard__icon { background: #EBF3FF; color: #1877F2; }
.ccard--facebook:hover { border-color: #BFDBFE; }
.ccard--tiktok .ccard__icon { background: #F0FFFE; color: #010101; }
.ccard--tiktok:hover { border-color: #69C9D0; }

.ccard__label {
  margin: 0;
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
}

.ccard__value {
  margin: 0;
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 20px);
  color: #570029;
  line-height: 1.2;
}

.ccard__hint {
  margin: 0;
  font-family: "Commissioner", sans-serif;
  font-size: 13px;
  color: #aaa;
}

/* ─────────────────────────────
   ІНФО: ГРАФІК + АДРЕСА + КАРТА
───────────────────────────── */
.contacts-info {
  margin-top: clamp(48px, 7vw, 96px);
  padding: 0 clamp(16px, 4vw, 60px);
}

.contacts-info__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.contacts-info__left {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

/* info-block */
.info-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-block__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #FFEFF6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E94290;
  margin-top: 2px;
}
.info-block__icon svg { width: 24px; height: 24px; }

.info-block__title {
  margin: 0 0 10px;
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: uppercase;
  color: #E94290;
}

.info-block__text {
  margin: 0 0 10px;
  font-family: "Commissioner", sans-serif;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: #570029;
}

.info-block__link {
  font-family: "Commissioner", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #E94290;
  text-decoration: none;
  transition: color .2s;
}
.info-block__link:hover { color: #C8186E; text-decoration: underline; }

/* Графік */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #FFEFF6;
  border-radius: 12px;
  font-family: "Commissioner", sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
}

.schedule__day { color: #570029; font-weight: 500; }
.schedule__time { color: #E94290; font-weight: 700; }

.schedule__row--off .schedule__day  { color: #bbb; }
.schedule__row--off .schedule__time { color: #bbb; font-weight: 400; }

/* Карта */
.contacts-info__map {
  height: clamp(360px, 45vw, 560px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.contacts-info__map iframe { display: block; }

/* ─────────────────────────────
   ФОРМА (CF7)
───────────────────────────── */

/* Підказка адміну якщо CF7 не налаштований */
.cf7-notice {
  color: #fff;
  opacity: .8;
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
}
.cf7-notice a { color: #fff; text-decoration: underline; }

/* Обгортка CF7 */
.cf7-wrapper .wpcf7 { width: 100%; }
.cf7-wrapper .wpcf7-form { display: flex; flex-direction: column; gap: 16px; }

/* Два поля в рядок (ім'я + телефон) */
.cf7-wrapper .wpcf7-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Label */
.cf7-wrapper .wpcf7-form label,
.cf7-wrapper .wpcf7-form .cf7-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  width: 100%;
}

/* Всі поля вводу */
.cf7-wrapper input[type="text"],
.cf7-wrapper input[type="tel"],
.cf7-wrapper input[type="email"],
.cf7-wrapper textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 14px;
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.cf7-wrapper input::placeholder,
.cf7-wrapper textarea::placeholder { color: rgba(255,255,255,.5); }
.cf7-wrapper input:focus,
.cf7-wrapper textarea:focus {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.2);
}
.cf7-wrapper textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

/* Кнопка submit */
.cf7-wrapper input[type="submit"],
.cf7-wrapper .wpcf7-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #E94290;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s, transform .12s;
  box-shadow: 0 8px 24px rgba(233,66,144,.35);
  -webkit-appearance: none;
}
.cf7-wrapper input[type="submit"]:hover,
.cf7-wrapper .wpcf7-submit:hover { background: #C8186E; transform: translateY(-2px); }
.cf7-wrapper input[type="submit"]:active { transform: translateY(0); }
.cf7-wrapper .wpcf7-submit.loading { opacity: .6; cursor: wait; }

/* Валідація CF7 */
.cf7-wrapper .wpcf7-not-valid {
  border-color: rgba(255,120,120,.7) !important;
}
.cf7-wrapper .wpcf7-not-valid-tip {
  font-family: "Commissioner", sans-serif;
  font-size: 12px;
  color: rgba(255,180,180,.9);
  margin-top: 4px;
  display: block;
}

/* Повідомлення після відправки */
.cf7-wrapper .wpcf7-response-output {
  border: none !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  font-family: "Commissioner", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 8px 0 0 !important;
}
.cf7-wrapper .wpcf7-mail-sent-ok {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
}
.cf7-wrapper .wpcf7-mail-sent-ng,
.cf7-wrapper .wpcf7-aborted,
.cf7-wrapper .wpcf7-spam-blocked {
  background: rgba(255,80,80,.25) !important;
  color: #fff !important;
}

/* Спінер CF7 */
.cf7-wrapper .wpcf7-spinner {
  background-color: rgba(255,255,255,.5) !important;
}

/* Адаптив форми */
@media (max-width: 640px) {
  .cf7-wrapper .wpcf7-form .cf7-row {
    grid-template-columns: 1fr;
  }
}

.contacts-form-section {
  margin-top: clamp(64px, 9vw, 120px);
  /* Повна ширина — виходимо за контейнер */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: #30A4AE;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 60px) clamp(64px, 9vw, 120px);
}

.contacts-form-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contacts-form-section__eyebrow {
  margin: 0 0 8px;
  font-family: "Kobzar KS", "Commissioner", sans-serif;
  font-size: clamp(22px, 3vw, 44px);
  color: #fff;
  opacity: .85;
  line-height: 1.1;
}

.contacts-form-section__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.contacts-form-section__desc {
  margin: 0;
  font-family: "Commissioner", sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}

/* ФОРМА */
.cform {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.cform__label {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
}

.cform__input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 14px;
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}

.cform__input::placeholder { color: rgba(255,255,255,.5); }
.cform__input:focus {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.2);
}

.cform__textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

.cform__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #E94290;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s, transform .12s;
  box-shadow: 0 8px 24px rgba(233,66,144,.35);
}
.cform__submit svg { width: 18px; height: 18px; }
.cform__submit:hover { background: #C8186E; transform: translateY(-2px); }
.cform__submit:active { transform: translateY(0); }
.cform__submit:disabled { opacity: .6; cursor: wait; transform: none; }

.cform__success {
  margin: 0;
  padding: 16px 20px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.cform__error {
  margin: 0;
  padding: 16px 20px;
  background: rgba(255,80,80,.25);
  border-radius: 14px;
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  color: #fff;
}

/* ─────────────────────────────
   АДАПТИВ
───────────────────────────── */
@media (max-width: 1100px) {
  .contacts-cards__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contacts-info__inner {
    grid-template-columns: 1fr;
  }
  .contacts-info__map {
    height: clamp(300px, 55vw, 440px);
  }
  .contacts-form-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contacts-hero {
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }
  .contacts-cards__inner {
    grid-template-columns: 1fr 1fr;
  }
  .contacts-form-section {
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
  }
  .cform__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .contacts-cards__inner {
    grid-template-columns: 1fr;
  }
}
