/* Custom Checkbox Styling: Load this CSS AFTER Bootstrap's CSS */

/* 1. HIDE THE NATIVE CHECKBOX (essential for clean custom styling) */
.add-person .form-check-input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}
.add-person .form-check {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 0 !important;
    margin-bottom: 0;      /* remove space between rows */
  
}

/* 2. Style the Label's ::before pseudo-element (This is the VISIBLE circle/icon) */
.add-person .form-check-input + .form-check-label::before {
    content: '';
    /* Base size and position for the visible element */
    width: 2.25em;       
    height: 2.25em;
    border-radius: 50%;
    position: absolute; /* Allows for easy alignment within the label */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* Used for centering the icon content */
    line-height: 2.25em;
    font-size: 1.5em;
    text-align: center;
    font-family: "Poppins", sans-serif; /* Ensure symbol is rendered */
}

/* 3. UNCHECKED STATE: Gold/Brown Circle with White Cross (❌) */
.add-person .form-check-input:not(:checked) + .form-check-label::before {
    background-color: #BFA253; /* Gold/Brown background */
    color: white; /* Icon color */
    content: "✕"; /* Cross symbol */
    font-weight: bold;
    font-size: 16px;
}

/* 4. CHECKED STATE: Dark Green Circle with White Checkmark (✔) */
.add-person .form-check-input:checked + .form-check-label::before {
    background-color: #00573C; /* Dark Green background */
    color: white; /* Icon color */
    content: "✔"; /* Checkmark symbol */
    font-weight: bold;
}

/* 5. FIX Label Padding (Moves the text over to make room for the custom icon) */
.add-person .form-check-label {
    position: relative; 
    padding-left: 3.2em;
    display: flex;
    align-items: center;
    min-height: 2.25em;
    text-align: left;
    font-size: 14px;
}
.add-person .form-select {
  background-color : #f2f2f2;
  color : #333;
  font-size: 14px;
  padding: 10px 14px;
}
/* For Continent */
.add-person .form-control[readonly] {
  background-color: #f2f2f2 !important;
  color: #333 !important;
  opacity: 1 !important;
}
.roles-list {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.role-row {
  display: grid;
  grid-template-columns:  56px 2fr 2fr 1.2fr 1.2fr 40px;
  align-items: center;
 margin-bottom: 6px;
  gap: 10px;
}
.roles-section {
  padding: 4.8px;
}
.role-row .col {
  padding: 0 ;
  margin: 0 ;
  font-size: 14px;
}
.role-row .form-select {
  height: 46px !important;
  background-color: #f2f2f2 !important;
  border-radius: 8px;
}
.role-header {
  font-weight: 600;
  margin-bottom: 2px;
  color: #333;
  display: grid;
  grid-template-columns: 56px 2fr 2fr 1.2fr 1.2fr 40px;
  align-items: center;
}
.role-header .col {
  padding: 0 !important;
}
.select-col {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  padding-left: 5px;
}
.eye-icon {
  cursor: pointer;
  font-size: 30px;
  color: #BFA253;
}
.delete-icon {
  cursor: pointer;
  color: #BFA253;
  font-size: 25px;
}
.delete-icon:hover {
  color: #a88d3f;
}
.role-row.new-role {
  /* background: #f2f2f2; */
  border-radius: 12px;
  padding: 5px 0px;
}
.relationship-row .form-select {
  height: 46px !important;
  background-color: #f2f2f2 !important;
  border-radius: 8px;
}
.role-row  input , .relationship-row input{
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 14px;
  margin-bottom: 0;
  background: #f2f2f2;
}
.eye-icon.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.roles-actions {
  margin-bottom: 24px; /* SAME AS PROFILE */
}
.add-person select.form-control, .add-person input.form-control {
    /* height: 46px; */
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #f2f2f2;
    font-size: 14px;
    color: #333;
}

.add-person input.form-control:disabled {
    background-color: #F3EFE3;
    color: #6B6B6B;
    cursor: not-allowed;
    opacity: 1; /* override bootstrap */
}

.relationship-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr 1.2fr 40px;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.email-copy-wrapper {
  position: relative;
  width: 100%;
}
.email-copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: #D9A128;

  display: flex;
  align-items: center;
  justify-content: center;
}

.email-copy-btn:hover {
  color: #b08320;
  transform: translateY(-50%) scale(1.1);
}

.copy-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #BFA253;
  font-size: 18px;
}

.copy-icon:hover {
  color: #a88d3f;
}
.custom-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f2f2f;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  border-bottom: 4px solid #BFA253;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #0B5E36;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}
.required-star {
  color: #BFA253;
  margin-left: 4px;
  font-weight: 700;
}
.role-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.profile-image-wrapper {
  position: relative;
  display: inline-block;
}
.profile-delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #BFA253;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
}
/* Make main control look like your grey select */
.react-select__control {
  background-color: #f2f2f2!important;
  min-height: 46px !important;
  border-radius: 8px !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Style dropdown menu */
.react-select__menu {
  padding-top: 0 !important;
}

/* Search bar inside dropdown - target design: white, simple */
.org-search-in-menu {
  padding: 8px 10px;
  background: #fff;
}

.org-search-input {
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  width: 100% !important;
  font-size: 14px !important;
  color: #333 !important;
  box-sizing: border-box;
}

.org-search-input::placeholder {
  color: #999;
}

.org-search-input:focus {
  outline: none;
  border-color: #999 !important;
}

.react-select__value-container {
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.organisation-col,
.role-col {
  overflow: visible !important;
}
.react-select__indicator-separator {
  display: none;
}
/* placeholder style */
.react-select__placeholder {
  color: #333 !important;
  font-size: 14px;
  opacity: 1;
}
.react-select__single-value {
    color: #333 !important;
    font-size: 14px;
}

/* Flatpickr (Formio datepicker) in roles */
.role-row .flatpickr-input {
  width: 100%;
}
/* Date fields - same look as Country of Birth / Marital Status select */
.date-picker-wrapper {
  position: relative;
  background-color: #f2f2f2 !important;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  min-height: 46px;
}
.date-picker-wrapper .flatpickr-input,
.date-picker-wrapper input.flatpickr-input {
  background: transparent !important;
  border: none !important;
  padding: 10px 40px 10px 14px !important;
  width: 100% !important;
  min-height: 44px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.date-picker-wrapper .flatpickr-wrapper {
  width: 100%;
}
.date-picker-wrapper .flatpickr-calendar,
.date-picker-wrapper .flatpickr-calendar.open,
.date-picker-wrapper .flatpickr-calendar.static {
  margin-top: 4px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.date-picker-wrapper .calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}
.date-picker-wrapper:focus-within {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Flatpickr calendar (Formio datepicker UI) */
.flatpickr-calendar {
  font-family: "Helvetica Neue", helvetica, arial, sans-serif;
}
.flatpickr-day.selected {
  background: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #333 !important;
}
.flatpickr-day.selected:hover {
  background: #d0d0d0 !important;
  border-color: #d0d0d0 !important;
  color: #333 !important;
}

/* 1. Target the SVG paths directly for both the Arrow and the Clear (X) icon */
.react-select__dropdown-indicator svg,
.react-select__clear-indicator svg {
    fill: #333 !important;
    color: #333 !important;
    width: 16px;
    height: 16px;
}

/* 2. Force the container to 100% opacity to ensure the black is vivid */
.react-select__indicators-container {
    opacity: 1 !important;
}

/* 3. Match the hover state of the native select icon */
.react-select__dropdown-indicator:hover svg {
    fill: #000 !important;
}

/* 4. Fix the Clear Indicator (the 'x') color specifically */
.react-select__clear-indicator {
    color: #333 !important;
    opacity: 1 !important;
}
.name-title{
  margin-bottom: 35px;
}