.two-column-layout {
    display: flex;
    min-height: 600px;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
}

/* Improved form spacing and appearance */
.brief-form-container .form-group {
    margin-bottom: 20px;  /* Increase bottom margin for more vertical spacing */
}

.brief-form-container label {
    margin-bottom: 8px;  /* Add more space between labels and inputs */
    display: block;
}

.brief-form-container h5 {
    margin-top: 25px;  /* Add more space above heading elements */
    margin-bottom: 15px;  /* Add more space below heading elements */
}

/* Ensure checkboxes are clickable - revised approach */
.brief-form-container .form-check {
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
}

.brief-form-container .form-check-label {
    margin-left: 3px;  /* Add 3px margin between checkbox and label as requested */
    cursor: pointer;
    /* display: inline-block; */
    position: relative;
    z-index: 4;
}

/* Ensure checkboxes are clickable */
.brief-form-container .form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
    z-index: 5; /* Higher z-index to ensure it's clickable */
    position: relative;
    opacity: 1 !important; /* Ensure visibility */
    pointer-events: auto !important; /* Ensure clicks are received */
}

/* Specifically target step 3 checkboxes */
#project-desc .form-check-input {
    opacity: 1;
    position: static; /* Override any potential absolute positioning */
    pointer-events: auto; /* Ensure clicks are received */
}

#project-desc .card .form-check {
    padding-left: 25px; /* Add more space for checkboxes in cards */
}

#project-desc .card .form-check-input {
    position: static; /* Ensure position is explicit and not inherited */
    margin-left: 0;
}

#project-desc .card .card-body {
    position: relative; /* Provide positioning context */
    z-index: 1;
}

/* Fix checkbox display specifically for device features section */
#project-desc .card .form-check-input[id^="sensor_"],
#project-desc .form-check-input[id^="feature_"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Card elements spacing */
.brief-form-container .card {
    margin-bottom: 20px;
}

.brief-form-container .card-header {
    padding: 12px 20px;
}

/* Lighter background for input fields to create better contrast */
.brief-form-container input:not([type="checkbox"]):not([type="radio"]),
.brief-form-container textarea,
.brief-form-container select {
    background-color: #f8f9fa !important;  /* Lighter background color */
    border: 1px solid #ddd;
}

.tab-nav-column {
    width: 300px;
    border-right: 1px solid #ddd;
    background: #f5f5f5;
}

.tab-nav-wrapper {
    display: flex;
    flex-direction: column;
}

.tab-nav-wrapper .tab-btn {
    padding: 15px 20px;
    text-align: left;
    border: none;
    background: transparent;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s;
}

.tab-nav-wrapper .tab-btn:hover {
    background: #e9ecef;
}

.tab-nav-wrapper .tab-btn.active {
    background: #fff;
    border-left: 4px solid #007bff;
    font-weight: bold;
}

.tab-content-column {
    flex: 1;
    position: relative;
}

.tab-content {
    height: 100%;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.tab-scroll-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.button-container {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Reset border-radius for form elements */
.brief-form-container input,
.brief-form-container select,
.brief-form-container textarea,
.brief-form-container .form-control,
.brief-form-container .form-check-input,
.brief-form-container .progress,
.brief-form-container .progress-bar,
.brief-form-container .btn {
    border-radius: 0 !important;
}

/* Ensure proper display of checkboxes without rounded corners */
.brief-form-container .form-check-input {
    margin-top: 0.25rem;
}

/* Ensure the progress bar has no rounded corners and fits the container */
.brief-form-container .progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.brief-form-container .progress-bar {
    line-height: 20px;
    font-size: 12px;
    text-align: center;
}

/* File Upload Styles */
.file-upload-container {
    margin: 20px 0;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 150px;
    max-height: 150px;
    padding: 25px;
    border: 2px dashed #ddd;
    border-radius: 0;
    transition: 0.3s;
    background-color: #f8f9fa;
    text-align: center;
    cursor: pointer;
}

.file-drop-area.is-active {
    border-color: #007bff;
    background-color: #e6f3ff;
}

.file-input {
    position: absolute;
    height: 150px;
    cursor: pointer;
    width: 94%;
    opacity: 0;
}

.file-message {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.browse-btn {
    margin-top: 10px;
}

.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.file-preview {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    width: 250px;
    overflow: hidden;
}

.file-preview .icon {
    margin-right: 10px;
    font-size: 24px;
    color: #555;
}

.file-preview .name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.file-preview .size {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}

.file-preview .remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
}

.file-preview .remove-btn:hover {
    color: #a71d2a;
}

/* Fix checkbox and radio appearance - completely revised approach */
.brief-form-container input[type="checkbox"],
.brief-form-container input[type="radio"] {
    /* Remove any default styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Set base style */
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #adb5bd !important;
    background-color: #fff !important;
    margin-right: 5px !important;
    margin-top: 0.25rem !important;
    display: inline-block !important;
    position: relative !important;
    cursor: pointer !important;
    vertical-align: text-bottom !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Style radio buttons */
.brief-form-container input[type="radio"] {
    border-radius: 50% !important;
}

/* Style checkbox buttons */
.brief-form-container input[type="checkbox"] {
    border-radius: 3px !important;
}

/* Checked state for both */
.brief-form-container input[type="checkbox"]:checked,
.brief-form-container input[type="radio"]:checked {
    background-color: #2c62ef !important; /* Primary blue color */
    border-color: #2c62ef !important;
}

/* Add center dot to radio buttons */
.brief-form-container input[type="radio"]:checked:after {
    content: "";
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: white !important;
    display: block !important;
}

/* Add check mark to checkboxes */
.brief-form-container input[type="checkbox"]:checked:after {
    content: "";
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 6px !important;
    border: 2px solid white !important;
    border-top: none !important;
    border-right: none !important;
    transform: translate(-50%, -65%) rotate(-45deg) !important;
}

/* Focus state */
.brief-form-container input[type="checkbox"]:focus,
.brief-form-container input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(44, 98, 239, 0.25) !important;
}

/* Remove the previous style that might be conflicting */
.brief-form-container input[type="checkbox"].checked-visual,
.brief-form-container input[type="radio"].checked-visual,
.brief-form-container input[type="checkbox"]:checked::after,
.brief-form-container input[type="radio"]:checked::after {
    /* Reset these properties to use our new styling instead */
    content: none;
}

/* Reset any themevar references that might not resolve */
.brief-form-container input[type="checkbox"]:checked,
.brief-form-container input[type="radio"]:checked {
    border-color: #2c62ef !important;
    background-color: #2c62ef !important;
}

/* Specifically fix Step 3 checkboxes and radios */
#project-desc input[type="checkbox"],
#project-desc input[type="radio"] {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin-top: 0.25rem;
}

/* Specific fix for Step 3 radio buttons which may have their own issues */
#project-desc input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 2px solid #adb5bd !important;
    background-color: #fff !important;
}

#project-desc input[type="radio"]:checked {
    background-color: #2c62ef !important;
    border-color: #2c62ef !important;
}

#project-desc input[type="radio"]:checked:after {
    content: "";
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: white !important;
    display: block !important;
}

/* Remove any custom styling from Bootstrap that might interfere */
.brief-form-container .custom-control-input {
    position: static !important;
    z-index: auto !important;
}

/* Required field indicators */
.required-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-right: 4px;
}

/* Enhanced validation styles */
.brief-form-container .is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.brief-form-container .is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.brief-form-container .invalid-section {
    border-left: 3px solid #dc3545;
    padding-left: 10px;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Make error messaging more visible */
.toast.toast-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* Better styling for error messages with multiple lines */
.toast-body {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

/* Add visual feedback for required checkbox groups */
h5.required-field {
    font-weight: bold;
}

.modal-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

/* Help button styling */
.help-btn {
    margin: 0 10px;
    background: transparent !important;
    transition: all 0.3s ease;
}

.help-btn:hover {
    color: white !important;
    transform: translateY(-1px);
}

.help-btn i {
    margin-right: 8px;
}

/* Button container improvements */
.button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Contact options in leave modal */
.contact-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.contact-options p {
    margin-bottom: 10px;
    color: #495057;
}

/* Help contact modal improvements */
.help-contact-modal .alert {
    margin-bottom: 0;
}

/* Help button in navigation using rr-primary-outline-btn */
.tab-nav-wrapper .rr-primary-outline-btn.help-btn {
    margin: 10px 15px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    display: block;
}

.tab-nav-wrapper .rr-primary-outline-btn.help-btn i {
    margin-right: 8px;
    margin-left: 0;
    transform: none !important;
}

.tab-nav-wrapper .rr-primary-outline-btn.help-btn:hover i {
    transform: none !important;
}

/* Style for "I don't know" buttons in section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.section-header h5 {
    margin: 0;
    flex: 1;
}

.dont-know-btn {
    background: #ffffff;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    margin-left: 10px;
}

.dont-know-btn:hover {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.dont-know-btn.active {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.dont-know-btn.active:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Hide form content when "I don't know" is active */
.section-content.hidden {
    display: none;
}

.section-content {
    transition: opacity 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablets */
    .dont-know-btn {
        padding: 1px 6px;
        font-size: 9px;
        min-width: 60px;
    }
    
    .section-header h5 {
        margin-bottom: 6px;
    }
}

@media (max-width: 768px) {
    .button-container {
        justify-content: center;
    }
    
    .help-btn {
        margin: 5px 0;
        font-size: 14px;
    }
    
    .help-btn i {
        margin-right: 5px;
    }
    
    /* Mobile adjustments for dont-know buttons */
    .dont-know-btn {
        padding: 1px 5px;
        font-size: 8px;
        min-width: 50px;
        font-weight: 400;
    }
    
    .section-header {
        margin-bottom: 10px;
    }
    
    .section-header h5 {
        margin-bottom: 5px;
        font-size: 16px;
    }
}