/* Improve spacing and layout */
.crm-public-form-item {
    margin-bottom: 20px;
}

/* Styling fieldset for a cleaner look */
.crm-profile {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Legend styling for better visual hierarchy */
.crm-profile legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Align checkbox and labels nicely */
.crm-option-label-pair {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Add space between checkboxes */
.crm-option-label-pair input {
    margin-right: 10px;
}

/* Hover effect for better UX */
.crm-option-label-pair:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Style the 'clear' div to avoid layout shifts */
.clear {
    height: 0;
    clear: both;
    margin-bottom: 15px;
}

/* Enhance textarea appearance */
.crm-form-textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
}

div#s2id_custom_52 {
    min-width: 100%;
}

.crm-section {
    clear: both;
}

/* Style select dropdowns */
.crm-form-select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Improve mobile responsiveness */
@media (max-width: 768px) {
    .crm-option-label-pair {
        flex-direction: column;
        align-items: flex-start;
    }

    .crm-profile {
        padding: 10px;
    }
}


/* Ensure all checkboxes and radio options are vertically stacked */
.crm-multiple-checkbox-radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Optional: Add space between options */
}

/* Increase width of the select box for Venture Pipeline stage */
#custom_52 {
    width: 100%; /* Use full width of the parent container */
    max-width: 600px; /* Ensure it can fit long options */
    min-width: 300px; /* Prevent it from becoming too narrow */
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Ensure legend appears on its own row */
.crm-profile legend {
    display: block;
    margin-bottom: 10px; /* Add spacing after the legend */
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

/* Adjust content layout for better spacing */
.crm-section {
    margin-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #custom_52 {
        max-width: 100%; /* Ensure the select box fits smaller screens */
    }

    .crm-multiple-checkbox-radio-options {
        gap: 8px;
    }
}


#editrow-custom_57 {
    clear: both;
}


.crm-container .crm-multiple-checkbox-radio-options {
    gap: 0px;
}

#crm-container.crm-public .crm-section, .crm-section {
    margin-bottom: 0px;
}


#_qf_Confirm_next-top, #_qf_Confirm_next-bottom {
    font-size: 30px;
    background-color: #8b1919;
}




/* General checkbox styling */
input[type="checkbox"] {
  width: 20px; /* Larger checkbox size */
  height: 20px; /* Consistent height */
  cursor: pointer; /* Pointer cursor for better UX */
  accent-color: #007bff; /* Modern blue color (Bootstrap primary) */
  border: 2px solid #007bff; /* Visible border */
  border-radius: 4px; /* Slight rounded corners */
  margin-right: 8px; /* Spacing between checkbox and label */
  vertical-align: middle; /* Aligns checkbox vertically with label */
}

/* Style for labels associated with checkboxes */
input[type="checkbox"] + label {
  font-size: 16px; /* Slightly larger label text */
  color: #333; /* Darker label color for readability */
  line-height: 1.5; /* Better line spacing */
  cursor: pointer; /* Makes the label clickable */
}

/* Optional hover effect for all checkboxes */
input[type="checkbox"]:hover {
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle hover glow */
}



.crm-profile .clear {
    margin-bottom: 0px;
}
    
    
.crm-profile .helprow-post {
    padding-top: 0px;
    line-height: 100%;
    padding-bottom: 20px;
}