/* Section Container Styles */
.section-container {
    margin: 30px 0;
}

/* Form Field Containers */
.custom-field-container {
    display: block;
    min-height: 24px;
    position: relative;
    border: 1px solid #3b82f6;
    padding: 10px;
    background-color: #f0f7ff;
}

.form-group {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
}

.field-label {
    margin-bottom: 10px;
    font-weight: bold;
}

.form-label {
    display: block;
    margin-bottom: 10px;
}

.radio-options {
    margin-left: 15px;
}

/* Custom Checkbox Styles */
.custom-checkbox-wrapper {
    color: #e2e2e2;
    margin-bottom: 1rem;
}

.custom-checkbox-container {
    position: relative; 
    display: inline-block;
    vertical-align: middle;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 2;
}

.custom-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #3b82f6;
    border-radius: 3px;
    display: inline-block;
    background-color: #1a1a1a;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox-input:checked + .custom-checkbox-box {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox-box .checkmark {
    position: absolute;
    top: 1px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox-input:checked + .custom-checkbox-box .checkmark {
    opacity: 1;
}

.custom-checkbox-label {
    color: #e2e2e2;
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
}

/* Hover and Focus States */
.custom-checkbox-input:hover + .custom-checkbox-box {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.custom-checkbox-input:focus + .custom-checkbox-box {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Conditional Content Styling - Space-Saving Approach */
.conditional-content {
    position: relative;
    margin: 8px 0;
    padding: 2px;
    border-radius: 3px;
    border-top: 1px solid #3b82f6; 
    background-color: rgba(59, 130, 246, 0.03); /* Very light blue background */
    width: 100%;
    box-sizing: border-box;
}

/* Second level conditional content */
.conditional-content .conditional-content {
    background-color: rgba(139, 92, 246, 0.03); /* Very light purple background */
    border-top: 1px solid #8b5cf6; /* Purple top border */
    margin: 6px 0;
}

/* Third level conditional content */
.conditional-content .conditional-content .conditional-content {
    background-color: rgba(236, 72, 153, 0.03); /* Very light pink background */
    border-top: 1px solid #ec4899; /* Pink top border */
}

/* Fourth level conditional content */
.conditional-content .conditional-content .conditional-content .conditional-content {
    background-color: rgba(249, 115, 22, 0.03); /* Very light orange background */
    border-top: 1px solid #f97316; /* Orange top border */
}

/* Ensure form elements inside conditional content are properly sized and aligned */
.conditional-content input[type="text"],
.conditional-content input[type="date"],
.conditional-content input[type="number"],
.conditional-content input[type="email"],
.conditional-content select {
    display: inline-block;
    width: auto;
    min-width: 150px;
    margin: 10px 5px;
    box-sizing: border-box;
}

/* Special styling for textarea in conditional content */
.conditional-content textarea {
    display: block;
    width: 100%;
    min-height: 80px;
    margin-top: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;
}



/* Fix spacing between elements in conditional content */
.conditional-content > div {
    margin-bottom: 5px;
}

/* Ensure all text and inputs flow naturally on the same line */
.conditional-content span,
.conditional-content label {
    display: inline;
    vertical-align: middle;
}

/* Add proper spacing between elements */
.conditional-content > * {
    margin-right: 4px;
}

/* Second level indicator */
.conditional-content .conditional-content::before {
    background-color: #8b5cf6; /* Purple */
}

/* Third level indicator */
.conditional-content .conditional-content .conditional-content::before {
    background-color: #ec4899; /* Pink */
}

/* Fourth level indicator */
.conditional-content .conditional-content .conditional-content .conditional-content::before {
    background-color: #f97316; /* Orange */
}
