/* =====================================================
   LEAD FORM – fara Bootstrap, layout ca in poza
   Gap intre coloane: 26px
   Textarea + elementele full-width aliniate vizual cu suma coloanelor
   ===================================================== */

/* Box sizing consistent */
#lead-form, #lead-form *{
  box-sizing: border-box;
}

/* Container */
.lead-form-container{
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  padding: 32px; /* desktop */
}

/* Padding responsive (desktop / tableta / mobil) */
@media (max-width: 991px){
  .lead-form-container{ padding: 24px; }
}
@media (max-width: 767px){
  .lead-form-container{ padding: 18px; }
}

/* Titlu */
.lead-form-title{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 18px 0;
}

/* Variabile form */
#lead-form{
  --lf-bg: #f4f6fb;
  --lf-text: #4b5563;
  --lf-placeholder: #8a94a6;
  --lf-focus: rgba(243,111,33,.18);
  --lf-btn: #ff5316;
  --lf-btn-hover: #c93400;

  --lf-gap: 26px;     /* gap intre coloane */
  --lf-vspace: 26px;  /* spatiu vertical intre blocuri */
}

/* 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 (Nume+Email / Telefon+Tip)
   ===================================================== */

#lead-form .row.form-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: var(--lf-gap);         /* spatiu intre coloane si randuri */
  margin: 0;
  margin-bottom: var(--lf-vspace);
}

#lead-form .row.form-wrapper .form-item{
  flex: 1 1 calc(50% - (var(--lf-gap) / 2));
  margin: 0;
}

/* pe mobil: o coloana */
@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: 0;
  outline: none;
  box-shadow: none;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--lf-text);

  padding: 18px 22px;
}

/* inaltime inputuri */
#lead-form input[type="text"],
#lead-form input[type="email"],
#lead-form input[type="tel"]{
  height: 74px;
}

/* textarea mare */
#lead-form textarea{
  min-height: 380px;
  resize: vertical;
  padding-top: 22px;
}

/* placeholder */
#lead-form input::placeholder,
#lead-form textarea::placeholder{
  color: var(--lf-placeholder);
  opacity: 1;
  font-weight: 400;
}

/* focus */
#lead-form input:focus,
#lead-form textarea:focus{
  background: #eef2fb;
  box-shadow: 0 0 0 3px var(--lf-focus);
}

/* =====================================================
   FULL-WIDTH ALIGNMENT
   Textarea + GDPR + buton + small:
   le “aliniem” vizual cu randurile 2-col (care au gap)
   ===================================================== */

/* Spatiu vertical intre elementele full-width */
#lead-form > .form-item{
  margin-bottom: var(--lf-vspace);
}

/* Compensare laterala: gap/2 ca sa para la fel de lat ca randurile cu 2 coloane */
#lead-form > .form-item,
#lead-form .form-actions,
#lead-form p.small{
  padding-left: calc(var(--lf-gap) / 2);
  padding-right: calc(var(--lf-gap) / 2);
}

/* Pe mobil (1 coloana) scoatem compensarea */
@media (max-width: 768px){
  #lead-form > .form-item,
  #lead-form .form-actions,
  #lead-form p.small{
    padding-left: 0;
    padding-right: 0;
  }
}

/* textarea fara gap lateral */
#lead-form .form-item-full{
  padding-left: 0;
  padding-right: 0;
}

/* =====================================================
   GDPR – centrat vertical + text bold
   ===================================================== */

#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.35;
  font-weight: 800;
  font-size: 18px;
  color: #111827;
}

#lead-form .gdpr-wrap label a{
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* =====================================================
   BUTON – cu liniuta in stanga care se roteste
   ===================================================== */

#lead-form .form-actions{
  margin-top: 12px;
  margin-bottom: 0;
}

#lead-form .webform-button--submit{
  position: relative;
  display: inline-block;

  background: var(--lf-btn);
  color: #fff;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;

  padding: 18px 36px;
  border-radius: 0;
  border: 0;
  box-shadow: none;

  min-width: 280px;
  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: 48px; /* spatiu pentru liniuta */
}

#lead-form .webform-button--submit span::after{
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 26px;
  height: 3px;
  background: #fff;
  transform: translateY(-50%) rotate(0deg);
  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: 18px;
  color: #6b7280;
}

/* Mobil: inputuri mai mici + buton full width */
@media (max-width: 576px){
  #lead-form input[type="text"],
  #lead-form input[type="email"],
  #lead-form input[type="tel"],
  #lead-form textarea{
    font-size: 18px;
    padding: 16px 18px;
  }

  #lead-form input[type="text"],
  #lead-form input[type="email"],
  #lead-form input[type="tel"]{
    height: 62px;
  }

  #lead-form textarea{
    min-height: 300px;
  }

  #lead-form .webform-button--submit{
    width: 100%;
    min-width: 0;
  }
}
