/* ===== GLOBAL BACKGROUND & CONTAINER ===== */
js-form-item.js-form-type-checkbox.checkbox.form-check.form-switch.mb-3.js-form-item-receptionare-raspuns-electronic-mail.form-item-receptionare-raspuns-electronic-mail {
    display: flex;
}
.js-form-item.js-form-type-checkbox.checkbox.form-check.form-switch.mb-3.js-form-item-receptionare-raspuns-suport-hartie.form-item-receptionare-raspuns-suport-hartie {
    display: flex;
}
js-form-item.js-form-type-tel.form-type-tel.js-form-item-telefon.form-item-telefon.mb-3 {
    width: 100%;
}
fieldset#edit-preferinte-limba--wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
}
.fieldgroup{margin:0;}
.js-form-item.js-form-type-tel.form-type-tel.js-form-item-telefon.form-item-telefon.mb-3 {
    width: 100%;
}
.js-form-item.js-form-type-number.form-type-number.js-form-item-idno.form-item-idno.mb-3 {
    width: 100%;
}
body,
.webform-submission-form {
  background-color: #f7f7f7;
}

.webform-submission-form {
  max-width: 820px;
  margin: 32px auto;
  background-color: #f7f7f7;
  box-sizing: border-box;
  padding: 0 0 32px 0;
}

/* ===== HEADERS & MARKUP ===== */
#edit-markup p,
#edit-markup strong {
  font-size: 16px;
  color: #222;
  margin-bottom: 10px;
}
#edit-markup {
  margin-bottom: 25px;
}
legend,
.fieldset-legend {
  font-size: 19px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

/* ===== LABEL FIX ===== */
.js-form-item label {
  font-weight: 600;
  color: #232323;
  font-size: 16px;
  margin-bottom: 7px;
  display: block;
}

/* ===== FLEX LAYOUT ===== */
.webform-flexbox {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 0;
}
.webform-flex--container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 22px;
}
.webform-flex {
  flex: 1 1 0;
  min-width: calc(50% - 12px); /* maxim 2 pe rand; 22px gap */
  max-width: calc(50% - 12px);
  box-sizing: border-box;
  margin-bottom: 0 !important;
}
@media (max-width: 700px) {
  .webform-flexbox,
  .webform-flex--container {
    flex-direction: column;
    gap: 0;
  }
  .webform-flex {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ===== INPUT FIELDS ===== */
.js-form-item input,
.js-form-item textarea {
box-sizing: border-box;
  width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    color: #495057;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}
.js-form-item input:focus,
.js-form-item textarea:focus {
  border-color: #004494;
}

/* ===== DESCRIPTION ===== */
.webform-element-description,
.js-form-item .description,
.js-form-item small.description {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.js-form-type-file label {
  font-weight: 700;
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 7px;
  display: block;
}

/* ===== SECTION HEADLINES ===== */
#edit-petitie-section strong,
.js-form-type-file label {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 7px;
  display: block;
}
#edit-petitie-section {
  margin-bottom: 14px;
}

#edit-receptionare-raspuns--wrapper legend,
#edit-receptionare-raspuns--wrapper .fieldset-legend {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

#edit-note-text strong,
#edit-termeni-text strong {
  font-size: 18px;
  color: #222;
}

#edit-receptionare-raspuns--wrapper .fieldset-legend {
}

.js-form-type-checkbox label, .js-form-type-radio label {
  font-size: 15px;
  color: #232323;
  font-weight: 500;
}

.js-form-type-checkbox input[type="checkbox"],
.js-form-type-radio input[type="radio"] {
  width: 100%;
margin-top: 0.5px;
  max-width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #004494;
}

/* ===== SUBMIT BUTTON ===== */
.webform-button--submit {
  background: #004494;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 0;
  border: none;
  width: 100%;
  transition: background 0.18s;
  margin-top: 25px;
}
.webform-button--submit:hover {
  background: #002c6e;
  color: #fff;
}

/* ===== ERROR ===== */
.form-item--error-message,
.js-form-item .error {
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
}

.js-form-item.js-form-type-radio.radio.form-check.form-switch.js-form-item-preferinte-limba.form-item-preferinte-limba {
    display: flex;
}
div#edit-preferinte-limba {
    display: flex;
    gap: 20px;
}
/* ==== RADIO BUTTON GROUP CA TABS STIL MODERN ==== */
#edit-form-tabs {
  display: flex;
  gap: 32px;  /* spațiu mare între "butoane" */
  margin-bottom: 30px;
  justify-content: flex-start;
}

/* Ascunde radio */
#edit-form-tabs .form-radio {
  display: none !important;
}

/* Stil de buton tab pentru label */
#edit-form-tabs .form-check-label {
  border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-bottom: 0;
background-color: #fff;
    padding: 10px;
    width: 100%;
min-width: 120px;
text-align:center;
cursor:pointer;
}
#edit-form-tabs .form-check-label:hover,
#edit-form-tabs .form-check-label:focus {
  border-color: #0B428F;
  box-shadow: 0 0 0 3px rgba(11,66,143,0.08);
}

/* Buton activ = checked radio + label following */
#edit-form-tabs input[type="radio"]:checked + .form-check-label {
  background: #0B428F;
  color: #fff;
  border-color: #0B428F;
  font-weight: 800;
  box-shadow: 0 4px 22px 0 rgba(11,66,143,0.13);
  outline: none;
}

/* Responsive */
@media (max-width: 700px) {
  #edit-form-tabs {
    gap: 12px;
    flex-direction: column;
  }
  #edit-form-tabs .form-check-label {
    min-width: 100%;
    min-height: 60px;
    font-size: 20px;
    border-radius: 12px;
    padding: 10px 6px;
  }
}
fieldset#edit-receptionare-raspuns--wrapper {
    margin-top: 40px;
}
div#edit-note-text {
    margin-top: 40px;
}
div#edit-termeni-text {
    margin-top: 40px;
}
.js-form-item.js-form-type-checkbox.checkbox.form-check.form-switch.mb-3.js-form-item-date-cu-caracter-personal.form-item-date-cu-caracter-personal {
    display: flex;
}
.js-form-item.js-form-type-checkbox.checkbox.form-check.form-switch.mb-3.js-form-item-am-verificat-datele-introduse.form-item-am-verificat-datele-introduse {
    display: flex;
}
.js-form-item.js-form-type-checkbox.checkbox.form-check.form-switch.mb-3.js-form-item-receptionare-raspuns-electronic-mail.form-item-receptionare-raspuns-electronic-mail {
    display: flex;
}
.js-form-item.js-form-type-radio.radio.form-check.form-switch.js-form-item-preferinte-limba.form-item-preferinte-limba {
    max-width: 100px;
    display: inline-flex;
    width: 100%;
}
