/* =========================
   SUPPORT PAGE
========================= */

body:has(.support-hero) .hero-wrapper{
  min-height: 0;
}

/* =========================
   HERO BG
========================= */

.hero-bg.hero-bg--support{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg.hero-bg--support::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.65) 55%,
    #000 100%
  );
  pointer-events:none;
}

.hero-bg.hero-bg--support img{
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
}

.site-header,
.support-hero{
  position: relative;
}

/* =========================
   HERO
========================= */

.support-hero{
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.support-title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* =========================
   LAYOUT
========================= */

.support-inner{
  max-width: 660px;
  margin-inline: auto;
  padding-bottom: 80px;
}

/* =========================
   CONTACT INFO
========================= */

.support-contacts{
  text-align: center;
  margin-bottom: 48px;
}

.support-subtitle{
  font-family: var(--font-heading);
  font-size: 20px;
  text-align: center;
  margin: 0 0 40px;
  color: #FFFFFF;
}

.support-contacts-grid{
  display: flex;
  justify-content: center;
  gap: 80px;
}

.support-contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.support-contact-icon{
  width: 40px;
  height: 40px;
}

.support-contact-text{
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

.support-contact-text:hover{
  text-decoration: underline;
}

/* =========================
   FORM (CF7)
========================= */

/* CF7 reset */
.support-form p{ margin: 0; }
.support-form br{ display: none; }

/* GRID */
.support-form .form-grid{
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.support-form .form-grid > *{
  min-width: 0;
}

/* Base controls */
.support-form input[type="text"],
.support-form input[type="email"],
.support-form input[type="tel"],
.support-form input[type="date"],
.support-form input.js-date,
.support-form select,
.support-form textarea{
  width: 100%;
  box-sizing: border-box;
  outline: none;
  background: #0f0f0f;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  color: #A4A4A4;
}

/* Inputs height */
.support-form input[type="text"],
.support-form input[type="email"],
.support-form input[type="tel"],
.support-form input[type="date"],
.support-form input.js-date,
.support-form select{
  height: 52px;
  padding: 0 18px;
}

/* Textarea */
.support-form textarea{
  grid-column: 1 / -1;
  min-height: 140px;
  padding: 16px 18px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* placeholder */
.support-form input::placeholder,
.support-form textarea::placeholder{
  color: #888;
}

.support-form input:not(:placeholder-shown),
.support-form textarea:not(:placeholder-shown){
  color: #fff;
}

.support-form select:valid{
  color: #fff;
}

/* Select arrow */
.support-form select{
  appearance: none;
  background-image: url('../img/arrow.svg');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 48px;
  cursor: pointer;
}


/* =========================
   DATE FIELD — 2 MODE SUPPORT
   1) CF7 [date purchase_date]  => input[type="date"]
   2) CF7 [text class:js-date]  => input.js-date (flatpickr)
========================= */

/* common date look: icon + space */
.support-form input[type="date"],
.support-form input.js-date{
  background-image: url('../img/ic.svg');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 52px;
  cursor: pointer;
}

/* IMPORTANT:
   Не робимо псевдо-плейсхолдери взагалі — щоб НЕ було дублю.
   Placeholder має бути тільки реальний (з CF7 placeholder="Purchase date").
*/

/* Якщо у тебе лишився старий date — НЕ блокуємо клік по календарю */
.support-form input[type="date"]::-webkit-calendar-picker-indicator{
  opacity: 0; /* ховаємо іконку браузера */
  cursor: pointer;
  width: 52px;
  height: 100%;
}

/* для webkit індикатор працює краще коли input relative */
.support-form input[type="date"]{
  position: relative;
}

/* label helper */
.form-label{
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #888;
}

/* submit */
.support-form input[type="submit"].btn-submit{
  margin-top: 24px;
  width: 300px;
  height: 52px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, #4FC2EB, #7185C1);
}

/* =========================
   SUPPORT – RESPONSIVE
========================= */

/* ====== TABLET (<= 992) ====== */
@media (max-width: 992px){

  .support-hero{
    min-height: 42vh;
    margin-bottom: 44px;
  }

  .support-title{
    font-size: 46px;
  }

  .support-subtitle{
    font-size: 18px;
    margin-bottom: 28px;
  }

  .support-contacts-grid{
    gap: 44px;
  }

  .support-form .form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-inline: auto;
  }

  .support-form input[type="text"],
  .support-form input[type="email"],
  .support-form input[type="tel"],
  .support-form input[type="date"],
  .support-form input.js-date,
  .support-form select,
  .support-form textarea{
    font-size: 15px;
  }
}

/* ====== MOBILE (<= 768) ====== */
@media (max-width: 768px){

  .support-hero{
    min-height: 36vh;
    margin-bottom: 28px;
  }

  .support-title{
    font-size: 34px;
    line-height: 1.1;
  }

  .support-subtitle{
    font-size: 16px;
    margin-bottom: 22px;
  }

  .support-contacts-grid{
    flex-direction: column;
    gap: 22px;
  }

  .support-contact-icon{
    width: 34px;
    height: 34px;
  }

  .support-form .form-grid{
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
  }

  .support-form textarea{
    grid-column: auto;
  }

  .support-form input[type="date"],
  .support-form input.js-date{
    background-position: right 16px center;
    padding-right: 48px;
  }

  .support-form input[type="submit"].btn-submit{
    width: 100%;
    height: 52px;
  }
}

/* ====== SMALL MOBILE (<= 420) ====== */
@media (max-width: 420px){
  .support-title{ font-size: 30px; }
}


/* =========================
   SUPPORT HERO BG FIX (MOBILE)
   (як training/product)
========================= */

@media (max-width: 768px){

  /* не обнуляємо висоту hero-wrapper на мобільних */
  body:has(.support-hero) .hero-wrapper{
    min-height: auto;
  }

  /* контейнер для absolute фону */
  .hero-wrapper{
    position: relative;
  }

  /* фон займає весь hero-wrapper (header + support-hero) */
  .hero-bg.hero-bg--support{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  /* головне: не різати 100vh, а розтягнути по контейнеру */
  .hero-bg.hero-bg--support img{
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  /* контент поверх фону */
  .site-header,
  .support-hero{
    position: relative;
  }
}

