/* ======================================================
   Footer Support Strip (Support + Newsletter)
   File: assets/css/footer-support.css
====================================================== */

.stm-ss{
  background: var(--stm-ss-bg, #f39c12);
  padding: 18px 0;
}

.stm-ss__inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.stm-ss__left{ flex: 1; min-width: 380px; }
.stm-ss__right{ flex: 1; min-width: 380px; text-align: right; }

.stm-ss__title{
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.1;
  color: #111;
}

.stm-ss__sub{
  margin-top: 4px;
  font-size: 14px;
  color: rgba(0,0,0,.85);
}

.stm-ss__actions{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stm-ss__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.stm-ss__ic svg{
  width: 20px;
  height: 20px;
  display: block;
}

.stm-ss__ic-img{
  width: 20px;
  height: 20px;
  display: block;
}

/* Newsletter title desktop: 1 line, right aligned, 2px smaller */
.stm-ss__n-title{
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stm-ss__form{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px;
}

.stm-ss__input{
  border: 0;
  outline: none;
  width: 420px;
  max-width: 58vw;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
}

.stm-ss__submit{
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.stm-ss__note{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,.85);
}

.stm-ss__msg{
  margin-top: 10px;
  font-weight: 800;
  font-size: 13px;
}

.stm-ss__msg--ok{ color: #0b3; }
.stm-ss__msg--bad{ color: #111; opacity: .9; }

/* Desktop defaults */
.stm-ss__help-toggle{ display:none; }
.stm-ss__panel[hidden]{ display:none !important; }

@media (max-width: 980px){

  .stm-ss{ padding: 16px 0; }

  .stm-ss__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .stm-ss__left,
  .stm-ss__right{ min-width: 0; }

  .stm-ss__right{ text-align: center; }

  /* Newsletter title: smaller + max 2 lines */
  .stm-ss__n-title{
    font-size: 14px;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .stm-ss__form{
    width: 100%;
    justify-content: center;
    padding: 8px;
  }
  .stm-ss__input{
    width: 100%;
    max-width: 100%;
  }

  .stm-ss__head{
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  /* ✅ FIX: hide ONLY the head title/sub, NOT panel subtitle */
  .stm-ss__head .stm-ss__title,
  .stm-ss__head .stm-ss__sub{
    display: none;
  }

  /* Dropdown button */
  .stm-ss__help-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;

    background: #fff;
    border: 0;
    border-radius: 14px;
    padding: 14px 14px;
    cursor: pointer;

    box-shadow: 0 10px 24px rgba(0,0,0,.14);
    -webkit-tap-highlight-color: transparent;
  }

  .stm-ss__help-toggle-text{
    flex: 1;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #111;
    font-size: 16px;
    line-height: 1.1;
  }

  .stm-ss__help-toggle-chev{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0,0,0,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .stm-ss__help-toggle-chev::before{
    content:"";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0,0,0,.75);
    border-bottom: 2px solid rgba(0,0,0,.75);
    transform: rotate(45deg);
    display:block;
  }
  .stm-ss__help-toggle[aria-expanded="true"] .stm-ss__help-toggle-chev::before{
    transform: rotate(-135deg);
  }

  /* Panel */
  .stm-ss__panel{
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px 10px 6px;
    background: rgba(255,255,255,.18);
  }

  /* ✅ Panel subtitle SHOW (complete section) */
  .stm-ss__sub--panel{
    display: block;
    margin: 6px 6px 10px;
    font-size: 13px;
    color: rgba(0,0,0,.85);
    text-align: center;
  }

  .stm-ss__actions{
    margin-top: 0;
    justify-content: center;
    gap: 12px;
  }

  .stm-ss__btn{
    width: 100%;
    justify-content: center;
  }
}

/* Mobile/Tablet: hide desktop-only parts (so ONLY dropdown button shows) */
@media (max-width: 980px){
  .stm-ss__desktop-actions{ display:none !important; }
  .stm-ss__right{ display:none !important; }

  /* Panel newsletter spacing */
  .stm-ss__panel-newsletter{
    margin-top: 12px;
  }

  /* Keep panel form full width nicely */
  .stm-ss__panel .stm-ss__form{
    width: 100%;
    justify-content: center;
  }
  .stm-ss__panel .stm-ss__input{
    width: 100%;
    max-width: 100%;
  }
}
