/* =====================================================
   SPLIT FORM – panou de contact colorat + formular
   Stanga: date de contact pe fundal accent
   Dreapta: formularul (aceleasi campuri ca template-ul clasic)
   ===================================================== */

.split-form-container,
.split-form-container *{
  box-sizing: border-box;
}

/* Container: doua panouri */
.split-form-container{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =====================================================
   PANOU STANGA – contact
   ===================================================== */

.split-panel{
  flex: 0 0 36%;
  background: linear-gradient(160deg, #ff5316 0%, #b73b0f 100%);
  color: #fff;
  display: flex;
}

.split-panel-inner{
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}

.split-badge{
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(255,255,255,.16);
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 22px 0;
}

.split-firm{
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px 0;
}

.split-text{
  font-size: 15px;
  line-height: 1.65;
  opacity: .92;
  margin: 0 0 36px 0;
}

/* Item contact (telefon / email) */
.split-contact-item{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.split-contact-icon{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.split-contact-icon svg{
  width: 19px;
  height: 19px;
}

.split-contact-label{
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .8;
  margin-bottom: 3px;
}

.split-contact-value{
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}

.split-contact-value:hover{
  text-decoration: underline;
}

/* =====================================================
   PANOU DREAPTA – formularul
   ===================================================== */

.split-form-side{
  flex: 1 1 auto;
  padding: 40px 38px;
  min-width: 0;
}

.lead-form-title{
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 20px 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: 18px;     /* gap intre coloane */
  --lf-vspace: 18px;  /* 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 */
#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: 860px){
  #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: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--lf-text);

  padding: 14px 18px;
}

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

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

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

#lead-form input:focus,
#lead-form textarea:focus{
  background: #eef2fb;
  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.35;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

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

/* Buton – cu liniuta care se roteste (ca la clasic) */
#lead-form .form-actions{
  margin-top: 8px;
  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: 15px 30px;
  border-radius: 0;
  border: 0;
  box-shadow: none;

  min-width: 240px;
  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%) 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: 12px 0 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* =====================================================
   RESPONSIVE: panourile una sub alta
   ===================================================== */

@media (max-width: 860px){
  .split-form-container{
    flex-direction: column;
  }

  .split-panel{
    flex: 1 1 auto;
  }

  .split-panel-inner{
    padding: 32px 24px;
  }

  .split-form-side{
    padding: 28px 22px;
  }
}

@media (max-width: 576px){
  #lead-form input[type="text"],
  #lead-form input[type="email"],
  #lead-form input[type="tel"]{
    height: 52px;
    font-size: 16px;
  }

  #lead-form textarea{
    min-height: 170px;
    font-size: 16px;
  }

  #lead-form .webform-button--submit{
    width: 100%;
    min-width: 0;
  }
}
