/*HA - separation eform */
.haseparation{display:flex;flex-wrap:wrap;}
.haseparation .form-field{max-width:100%;width:48%;margin-right:2%;}
.haseparation footer{width:100%;}
.haseparation .request_custom_fields_6420481577375{height: 103px !important;}
.request_custom_fields_6420403174943 {width: 98% !important}
.hazendesk-radio-group label {display: inline-flex !important;align-items: center;}
.hazendesk-radio-group {display: flex;flex-wrap: wrap;gap: 20px;}
.hasep_searchfieldwidth{width: 88% !important;margin-right: 0px !important;}
.ha-sep-countryTag{display: none;}
.ha_sep_SearchUserDetails{height: 91% !important;}
.ha_sep_error{border: 2px solid red !important;}
/* margin-right: 15px; */


/* Radio button section - box with border */
.rdmethodself_sep{width:98%;border:1px solid #d9d9d9;border-radius:8px;padding:16px 20px;margin-top:16px;margin-bottom:16px;background:#fff;box-sizing:border-box;}
.rdmethodself_sep .mainlabel{font-weight:700;font-size:16px;margin-bottom:10px;display:block;color:#333;}
.rdmethodself_sep .rdbtn{display:flex;gap:24px;align-items:center;flex-wrap:wrap;}
.rdmethodself_sep .rdbtn input[type="radio"]{margin-right:4px;cursor:pointer;position:relative;top:-4px;}
.rdmethodself_sep .rdbtn label{margin-right:12px;cursor:pointer;font-weight:400;font-size:15px;color:#555;}

/* Yellow/beige background for auto-populated readonly employee fields */
.ha-sep-autofilled{background-color:#fdf4e3 !important;border:1px solid #e8d5b0 !important;}
.ha-sep-autofilled input{background-color:#fdf4e3 !important;border:none !important;box-shadow:none !important;outline:none !important;color:#333 !important;}

/* Date picker and text inputs inside auto-populated fields */
.ha-sep-autofilled input[type="date"], .ha-sep-autofilled input[type="text"]{background-color:#fdf4e3 !important;border:none !important;}

/* Style the renamed "Back" item in nesty-panel to look like a normal "-" option */
.ha-sep-back-disabled {
  font-size: 15px !important;
  color: #333 !important;
  background-color: #f8f8f8 !important;
  padding: 8px 12px !important;
  pointer-events: none !important;
  cursor: default !important;
}
.ha-sep-back-disabled::after,
.ha-sep-back-disabled::before {
  display: none !important;
  content: none !important;
}
.ha-sep-back-disabled .nesty-arrow,
.ha-sep-back-disabled i,
.ha-sep-back-disabled span.arrow,
.ha-sep-back-as-clear .nesty-arrow,
.ha-sep-back-as-clear i,
.ha-sep-back-as-clear span.arrow {
  display: none !important;
}
.ha-sep-back-as-clear::before,
.ha-sep-back-as-clear::after {
  display: none !important;
  content: none !important;
}

/* Hide the Back/first item in termination reason panel until JS replaces it with "-" */
.ha-sep-termination-panel li:first-child:not(.ha-sep-back-as-clear) {
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
/* Keep entire panel invisible until JS is done processing */
.ha-sep-termination-panel {
  opacity: 0 !important;
}
.ha-sep-termination-panel.ha-sep-panel-ready {
  opacity: 1 !important;
}

@media (max-width: 768px) {
    .haseparation .form-field {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px; /* optional spacing between fields */
        float: none; /* reset float */
    }
}

/* Comments field - full width on its own row */
.haseparation .request_custom_fields_6420402939679{width:98% !important;}
.haseparation .request_custom_fields_6420402939679 textarea{height:48px !important;min-height:48px !important;overflow:hidden !important;resize:none !important;}


/* Searchable dropdown */
.ha-sep-search-wrapper {
  position: relative;
  width: 100%;
}
.ha-sep-search-input {
  width: 100%;
  padding: 8px 30px 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  cursor: text;
}
.ha-sep-search-input:focus {
  border-color: #ccc;
  outline: none;
  box-shadow: none;
}
.ha-sep-search-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
  font-size: 12px;
}
.ha-sep-search-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.ha-sep-search-list.open {
  display: block;
}
.ha-sep-search-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.ha-sep-search-item:hover {
  background-color: #fff8e6;
}
.ha-sep-search-item:last-child {
  border-bottom: none;
}
.ha-sep-search-no-results {
  padding: 8px 12px;
  color: #999;
  font-style: italic;
  font-size: 13px;
}
