/* =====================================================
   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(255,83,22,0.18);
  --lf-btn: #ff5316;
  --lf-btn-hover: #b73b0f;

  --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;
  }
}

/* =====================================================
   MODELUL "CU HARTA GOOGLE" – pagina de contact completa:
   titlu + intro, casete de contact, formular, harta
   ===================================================== */

.contact-page{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}
.contact-page *{ box-sizing: border-box; }

/* Titlu + intro */
.contact-head{
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.contact-title{
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}
.contact-title::after{
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: #ff5316;
  margin: 16px auto 0;
}
.contact-intro{
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
}

/* Casete de contact (email / telefon / adresa) */
.contact-boxes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.contact-box{
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-bottom: 3px solid #ff5316;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  padding: 22px 20px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-box:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.contact-box-icon{
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffede7;
  color: #ff5316;
}
.contact-box-icon svg{ width: 24px; height: 24px; }
.contact-box-text{ min-width: 0; }
.contact-box-label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}
.contact-box-value{
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contact-box:hover .contact-box-value{ color: #b73b0f; }

/* Harta */
.contact-map{
  margin-top: 40px;
  border: 1px solid #e4e7eb;
  border-top: 4px solid #ff5316;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  line-height: 0; /* fara spatiu sub iframe */
}
.contact-map iframe{ display: block; }

/* Formularul mosteneste stilul "clasic"; il latim la pagina */
.contact-page .lead-form-container{ max-width: none; }

@media (max-width: 900px){
  .contact-boxes{ grid-template-columns: 1fr; }
  .contact-map iframe{ height: 380px; }
}
