/* =====================================================
   DARK FORM – fundal inchis, inputuri semi-transparente,
   accent puternic pe culoarea de brand
   ===================================================== */

#lead-form, #lead-form *{
  box-sizing: border-box;
}

/* Container inchis */
.lead-form-container{
  max-width: 860px;
  margin: 0 auto;
  background: #0f172a;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  padding: 40px;
  border-top: 4px solid #ff5316;
}

@media (max-width: 991px){
  .lead-form-container{ padding: 30px; }
}
@media (max-width: 767px){
  .lead-form-container{ padding: 22px; }
}

/* Titlu */
.lead-form-title{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 24px 0;
}

/* Variabile form */
#lead-form{
  --lf-bg: rgba(255,255,255,.07);
  --lf-bg-focus: rgba(255,255,255,.12);
  --lf-text: #e5e7eb;
  --lf-placeholder: #94a3b8;
  --lf-focus: rgba(255,83,22,0.18);
  --lf-btn: #ff5316;
  --lf-btn-hover: #b73b0f;

  --lf-gap: 22px;
  --lf-vspace: 22px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Label ascuns (accesibil) */
#lead-form .visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Grid: 2 coloane */
#lead-form .row.form-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: var(--lf-gap);
  margin: 0 0 var(--lf-vspace) 0;
}

#lead-form .row.form-wrapper .form-item{
  flex: 1 1 calc(50% - (var(--lf-gap) / 2));
  margin: 0;
  min-width: 0;
}

@media (max-width: 768px){
  #lead-form .row.form-wrapper .form-item{
    flex: 1 1 100%;
  }
}

/* Campuri */
#lead-form input[type="text"],
#lead-form input[type="email"],
#lead-form input[type="tel"],
#lead-form textarea{
  width: 100%;
  background: var(--lf-bg);
  border: 1px solid rgba(255,255,255,.10);
  outline: none;
  box-shadow: none;

  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  color: var(--lf-text);

  padding: 14px 18px;
  transition: background .2s ease, border-color .2s ease;
}

#lead-form input[type="text"],
#lead-form input[type="email"],
#lead-form input[type="tel"]{
  height: 58px;
}

#lead-form textarea{
  min-height: 190px;
  resize: vertical;
}

#lead-form input::placeholder,
#lead-form textarea::placeholder{
  color: var(--lf-placeholder);
  opacity: 1;
}

#lead-form input:focus,
#lead-form textarea:focus{
  background: var(--lf-bg-focus);
  border-color: var(--lf-btn);
  box-shadow: 0 0 0 3px var(--lf-focus);
}

/* Spatiu vertical intre blocurile full-width */
#lead-form > .form-item{
  margin-bottom: var(--lf-vspace);
}

/* GDPR */
#lead-form .gdpr-wrap{
  display: flex;
  align-items: center;
  gap: 12px;
}

#lead-form #lead-form-gdpr{
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--lf-btn);
}

#lead-form .gdpr-wrap label{
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  font-size: 14px;
  color: #cbd5e1;
}

#lead-form .gdpr-wrap label a{
  color: #f8fafc;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Buton plin, cu liniuta care se roteste */
#lead-form .form-actions{
  margin-top: 10px;
  margin-bottom: 0;
}

#lead-form .webform-button--submit{
  position: relative;
  display: inline-block;

  background: var(--lf-btn);
  color: #fff;

  font-family: inherit;
  font-size: 17px;
  font-weight: 800;

  padding: 16px 34px;
  border-radius: 0;
  border: 0;
  box-shadow: 0 8px 24px rgba(255,83,22,0.18);

  min-width: 260px;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

#lead-form .webform-button--submit:hover{
  background: var(--lf-btn-hover);
}

#lead-form .webform-button--submit span{
  position: relative;
  display: inline-block;
  padding-left: 44px;
}

#lead-form .webform-button--submit span::after{
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 3px;
  background: #fff;
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform .25s ease;
}

#lead-form .webform-button--submit:hover span::after{
  transform: translateY(-50%) rotate(90deg);
}

/* Text mic sub buton */
#lead-form p.small{
  margin: 14px 0 0 0;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 576px){
  #lead-form .webform-button--submit{
    width: 100%;
    min-width: 0;
  }
}
