/* rightofwithdrawal v1.1.0 — Made by B1Studio.ro (https://b1studio.ro) */

/* ================================================================
   LAYOUT GENERAL
   ================================================================ */
#retragere-form .card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
#retragere-form .card-header {
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 20px;
}
#retragere-form .card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
#retragere-form .card-body {
  padding: 20px;
}
#retragere-form label sup {
  color: #e53935;
  margin-left: 2px;
}
.retragere-declaratie-card {
  border-color: #1a1a1a !important;
}
.retragere-declaratie-card .card-body {
  background: #fafafa;
}
#btn-submit-retragere {
  min-width: 220px;
}
@media (max-width: 576px) {
  #retragere-form .card-body { padding: 14px; }
}

/* ================================================================
   CUSTOM RADIO & CHECKBOX — reset complet, fara dependenta Bootstrap
   ================================================================ */

/* Sterge orice stil mostenit de la tema */
#retragere-form .custom-control,
#retragere-form .custom-radio,
#retragere-form .custom-checkbox {
  all: unset;
  display: block !important;
  position: relative !important;
  padding-left: 1.8rem !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  min-height: 1.4rem !important;
}

/* Input real — ascuns, dar pozitionat pentru accesibilitate */
#retragere-form .custom-control-input {
  all: unset;
  position: absolute !important;
  left: 0 !important;
  top: 0.15rem !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

/* Label — inline normal */
#retragere-form .custom-control-label {
  all: unset;
  display: inline !important;
  cursor: pointer !important;
  font-weight: normal !important;
  line-height: 1.5 !important;
  color: inherit !important;
  vertical-align: middle !important;
}

/* Casuta/cerc vizibil — pseudo ::before */
#retragere-form .custom-control-label::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.15rem !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
  background: #fff !important;
  border: 2px solid #adb5bd !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  transition: background 0.15s, border-color 0.15s !important;
}
/* Radio — rotund */
#retragere-form .custom-radio .custom-control-label::before {
  border-radius: 50% !important;
}

/* Checked state */
#retragere-form .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #1a1a1a !important;
  border-color: #1a1a1a !important;
}

/* Checkmark pentru checkbox */
#retragere-form .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  content: '' !important;
  position: absolute !important;
  left: 0.25rem !important;
  top: 0.38rem !important;
  width: 0.6rem !important;
  height: 0.35rem !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: rotate(-45deg) !important;
}
/* Dot pentru radio */
#retragere-form .custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  content: '' !important;
  position: absolute !important;
  left: 0.3rem !important;
  top: 0.45rem !important;
  width: 0.5rem !important;
  height: 0.5rem !important;
  background: #fff !important;
  border-radius: 50% !important;
}

/* Focus */
#retragere-form .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(26,26,26,0.2) !important;
  border-color: #1a1a1a !important;
}

/* ================================================================
   SPINNER BUTON SUBMIT
   ================================================================ */
.retragere-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: retragere-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes retragere-spin {
  to { transform: rotate(360deg); }
}

/* Ascunde badge reCAPTCHA v3 — afisam manual textul legal */
.grecaptcha-badge { visibility: hidden !important; }

/* ================================================================
   RADIO BUTTONS MOTIV — HTML nativ, fara dependenta Bootstrap
   ================================================================ */
#retragere-form .row-motiv-item {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  gap: 0.5rem !important;
}
#retragere-form .row-motiv-item input[type="radio"] {
  flex-shrink: 0 !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #1a1a1a !important;
}
#retragere-form .row-motiv-item label {
  margin: 0 !important;
  cursor: pointer !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
}

/* ================================================================
   PRODUSE COMANDA - checkbox-uri (mod comanda identificata)
   ================================================================ */
#retragere-form .row-product-item {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  gap: 0.5rem !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
#retragere-form .row-product-item input[type="checkbox"] {
  flex-shrink: 0 !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #1a1a1a !important;
}
#retragere-form .row-product-item label {
  margin: 0 !important;
  cursor: pointer !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
}

/* readonly fields - vizual diferit pentru a semnala blocarea */
#retragere-form input[readonly] {
  background-color: #f5f5f5 !important;
  cursor: not-allowed !important;
}

/* Lookup card */
#row-lookup-card .card-body { padding: 20px; }
