/* Container */
.formy_style .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }
  
  @media (max-width: 576px) {
    .formy_style .container { max-width: 540px; }
  }
  
  @media (max-width: 768px) {
   .formy_style .container { max-width: 720px; }
  }
  
  @media (max-width: 992px) {
    .formy_style .container { max-width: 960px; }
    .formy_style .row {
    display: inline-block !important;
  }
  }
  
  @media (max-width: 1200px) {
   .formy_style .container { max-width: 1140px; }
  }
  
  /* Row */
 .formy_style .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
  
  /* Columns (common) */
 .formy_style [class*="col-"] {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
  }
  .form_grup {
  margin-bottom: 15px;
}
  /* Extra small (default) */
  .formy_style .col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .formy_style .col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .formy_style .col-3 { flex: 0 0 25%; max-width: 25%; }
  .formy_style .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .formy_style .col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .formy_style .col-6 { flex: 0 0 50%; max-width: 50%; }
  .formy_style .col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .formy_style .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .formy_style .col-9 { flex: 0 0 75%; max-width: 75%; }
  .formy_style .col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .formy_style .col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .formy_style .col-12 { flex: 0 0 100%; max-width: 100%; }
  
  /* Small screens (sm) */
  @media (min-width: 576px) {
    .formy_style .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .formy_style .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .formy_style .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .formy_style .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .formy_style .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .formy_style .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .formy_style .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .formy_style .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .formy_style .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .formy_style .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .formy_style .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .formy_style .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  }
  
  /* Medium screens (md) */
  @media (min-width: 768px) {
   .formy_style .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
   .formy_style .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
   .formy_style .col-md-3 { flex: 0 0 25%; max-width: 25%; }
   .formy_style .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
   .formy_style .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
   .formy_style .col-md-6 { flex: 0 0 50%; max-width: 50%; }
   .formy_style .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
   .formy_style .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
   .formy_style .col-md-9 { flex: 0 0 75%; max-width: 75%; }
   .formy_style .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
   .formy_style .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
   .formy_style .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  }
  
  /* Large screens (lg) */
  @media (min-width: 992px) {
   .formy_style .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
   .formy_style .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
   .formy_style .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
   .formy_style .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
   .formy_style .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
   .formy_style .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
   .formy_style .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
   .formy_style .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
   .formy_style .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
   .formy_style .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
   .formy_style .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
   .formy_style .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  }
  
  /* Extra large screens (xl) */
  @media (min-width: 1200px) {
   .formy_style .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
   .formy_style .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
   .formy_style .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
   .formy_style .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
   .formy_style .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
   .formy_style .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
   .formy_style .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
   .formy_style .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
   .formy_style .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
   .formy_style .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
   .formy_style .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
   .formy_style .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
  }
  .form_grup input:not([type=checkbox]):not([type=radio]) {
  width: 100%;
}
.form_grup fieldset label {
  display: flex
;
  margin-bottom: 15px;
}
#signature-canvas {
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
.formy_style .radio_list {
  display: flex;
  flex-direction: column;
}
button#clear-signature {
  padding: 10px;
  margin-top: 10px;
  text-transform: none;
}

.form_footer {
  width: 100%;
  text-align: center;
  margin-top: 50px;
}
/* Containerul pentru butoane */
.user-type-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Fiecare etichetă este un buton cu flex pentru a se extinde uniform */
.user-type-toggle .toggle-label {
  margin: 0;
  flex: 1;
}

/* Ascundem butoanele radio native */
.user-type-toggle input[type="radio"] {
  display: none;
}

/* Stil pentru aspectul de buton */
.user-type-toggle .toggle-label span {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background-color: #f7f7f7;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

/* Stil pentru butonul selectat */
.user-type-toggle input[type="radio"]:checked + span {
  background-color: #0073aa;
  color: #fff;
}

/* Stil la hover (opțional) */
.user-type-toggle .toggle-label span:hover {
  background-color: #e0e0e0;
}

#custom-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]) {
  border: none;
  margin-top: 0;
  max-width: 100%;
  position: relative;
  margin-bottom: 0;
  width: 100%;
  border-bottom: 1px solid;
  border-radius: 0;
}
#custom-form input[type=submit]:not(.adminbar-button) {
  padding: 15px 50px;
}

.form_titleSection {
  margin-bottom: 15px;
  margin-top: 30px;
}

/* ================================================================ */
/* ================== Moved from form-handler.php ================= */
/* ================================================================ */

/* Container for form messages */
#form-messages {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

/* Alert styling */
.alert {
  padding: 1rem;
  /* Slightly reduced padding */
  margin-bottom: 0.8rem;
  /* Slightly reduced margin */
  border-radius: 0.3rem;
  /* Slightly reduced border radius */
  line-height: 1.4;
  /* Slightly reduced line height */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Slightly softer shadow */
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 3s ease-in-out forwards;
}

/* Default font size (for larger screens) */
.alert {
  font-size: 1.6rem;
  /* Larger default size */
}

@media (min-width: 320px) {

  /* smartphones */
  .alert {
      font-size: 1.2rem;
      padding: 0.8rem;
      /* Further reduced padding */
      margin-bottom: 0.6rem;
      /* Further reduced margin */
  }
}

@media (min-width: 480px) {

  /* smartphones, landscape iPhone */
  .alert {
      font-size: 1.3rem;
  }
}

@media (min-width: 600px) {

  /* portrait tablets */
  .alert {
      font-size: 1.4rem;
  }
}

@media (min-width: 768px) {

  /* Tablets and smaller laptops */
  .alert {
      font-size: 1.5rem;
  }
}

@media (min-width: 992px) {

  /* Laptops and desktops */
  .alert {
      font-size: 1.6rem;
      /* Back to larger size */
  }
}

@media (min-width: 1200px) {

  /* Larger desktops */
  .alert {
      font-size: 1.7rem;
      /* Even larger for very big screens */
  }
}


/* Success and Danger alerts (no font-size changes here, inherit from .alert) */
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}


/* Keyframes for the animation */
@keyframes slide-up {
  0% {
      opacity: 0;
      transform: translateY(20px);
      animation-timing-function: ease-in;
  }

  15% {
      opacity: 1;
      transform: translateY(0);
      animation-timing-function: ease-out;
  }

  85% {
      opacity: 1;
      transform: translateY(0);
  }

  100% {
      opacity: 0;
      transform: translateY(-60px);
      animation-timing-function: ease-in-out;
  }
}