/* =========================
   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;
}


/* =========================
   SUPPORT GUIDES + CONTACTS
========================= */

.support-guides,
.support-contacts{
  text-align: center;
}

.support-guides{
  margin-bottom: 60px;
}

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

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

.support-guides-grid,
.support-contacts-grid{
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.support-guide,
.support-contact{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-guide{
  position: relative;
  z-index: 1;
}

.support-guide:hover{
  z-index: 10;
}

.support-guide-link{
  display: block;
}

.support-guide-qr{
  width: 150px;
  height: 150px;
  border-radius: 6px;
  object-fit: contain;
  background: #111;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}

.support-guide-qr:hover{
  transform: scale(1.35);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  z-index: 5;
}

.support-guide-label{
  margin-top: 12px;
  font-size: 16px;
  color: #ffffff;
}

.support-contact{
  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;
}

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

  .support-guides-grid,
  .support-contacts-grid{
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 28px;
  }

  .support-guide-qr{
    width: 180px;
    height: 180px;
  }

  .support-guide-qr:hover{
    transform: none;
  }
}

/* =========================
   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;
}

.support-form .form-grid > :last-child{
  grid-column: 1 / -1;
}


/* =========================
   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;
}

.support-form input[type="date"]::-webkit-calendar-picker-indicator{
  opacity: 0;
  cursor: pointer;
  width: 52px;
  height: 100%;
}

.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)
========================= */

@media (max-width: 768px){

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

  .hero-wrapper{
    position: relative;
  }

  .hero-bg.hero-bg--support{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

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

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

/* =========================
   WARRANTY REGISTRATION - File
========================= */

.form-grid .w-file{
  grid-column: 1 / -1;
  position: relative;
  height: 143px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4FC2EB, #7185C1);
  overflow: hidden;
  cursor: pointer;
}

/* dashed inner border */
.form-grid .w-file::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.65);
  pointer-events:none;
}

/* UI wrapper */
.w-file__ui{
  position:absolute;
  inset:0;
  padding:16px;
}

.w-file__btn,
.w-file__hint{
  display:block;
  text-align:center;
}

.w-file__btn{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, calc(-50% - 10px));
  background:#fff;
  color:#111;
  border-radius:10px;
  padding:14px 26px;
  font-family:var(--font-heading);
  font-size:14px;
  letter-spacing:.03em;
  text-transform:uppercase;
  min-width: 260px;
}

.w-file__hint{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, calc(-50% + 42px));
  color: rgba(255,255,255,.9);
  font-size:14px;
  line-height:1.2;
}

.w-file__input{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

.w-file__meta{
  display:none;
  position:absolute;
  left:30px;
  right:30px;
  bottom:20px;
  align-items:center;
  gap:10px;
}

.w-file.has-file .w-file__meta{
  display:flex;
}

.w-file.has-file .w-file__hint{
  opacity:0;
  pointer-events:none;
}

/* thumb */
.w-file__thumb{
  width:34px;
  height:34px;
  border-radius:8px;
  background: rgba(255,255,255,.72);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.w-file__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.w-file__name{
  flex: 1 1 auto;
  min-width: 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color: rgba(255,255,255,.95);
  font-size:13px;
}

.w-file__remove{
  flex: 0 0 auto;
  border:0;
  background: rgba(0,0,0,.25);
  color:#fff;
  border-radius:8px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}

.w-file.has-file::before{
  border-style: solid;
  border-color: rgba(255,255,255,.9);
}

.w-file.has-file .w-file__hint{
  opacity: .7;
}

/* FORCE preview behavior */
.form-grid .w-file .w-file__meta{
  display: none !important;
}

.form-grid .w-file.has-file .w-file__meta{
  display: flex !important;
}

.form-grid .w-file.has-file .w-file__hint{
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive */
@media (max-width:768px){
  .form-grid .w-file { 
  		height: 160px; 
  	}
  	
  .w-file__btn{ 
  		min-width: 220px; 
  	}

	.w-file__meta{
  		bottom:20px;
}
}