/* Input Components - Minimal Global Styles */

.auto-fill-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success, #198754);
}

.auto-fill-indicator i {
    font-size: 1rem;
}
.form-group{
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-help {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-label{
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.form-label .required{
    color: var(--error-600);
    font-weight: 600;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: 1px solid var(--border-medium);
    background: white;
}

.radio-label:hover {
    background: var(--neutral-50);
    border-color: var(--brand-400);
}

.radio-label input[type="radio"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--brand-600);
    flex-shrink: 0;
}

.radio-label span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    user-select: none;
}

.radio-label:has(input[type="radio"]:checked) {
    background: var(--brand-50);
    border-color: var(--brand-100);
}

.radio-label:has(input[type="radio"]:checked) span {
    color: var(--text-primary);
    font-weight: 500;
}

.question-group {
    margin-bottom: 16px;
}

.question-group:last-child {
    margin-bottom: 0;
}

/* Parent Question Styling */
.parent-question {
    position: relative;
}

/* Child Question Section - First Level Nesting */
.child-question-section {
    margin-top: 12px;
    margin-left: 20px;
    padding-left: 16px;
    border-left: 2px solid var(--brand-200);
    animation: fadeIn-b-0d9uxrqvps 0.3s ease-in;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.02) 0%, transparent 100%);
    border-radius: 0 6px 6px 0;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 12px;
}

/* Child Question */
.child-question {
    margin-bottom: 14px;
}

.child-question:last-child {
    margin-bottom: 0;
}

/* Child Label with Indicator */
.child-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.child-indicator {
    color: var(--brand-500);
    font-size: 14px;
    flex-shrink: 0;
}

/* Grandchild Question Section - Second Level Nesting */
.grandchild-question-section {
    margin-top: 16px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--brand-300);
    animation: fadeIn-b-0d9uxrqvps 0.3s ease-in;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 12px;
}

/* Grandchild Question */
.grandchild-question {
    margin-bottom: 0;
}

/* Grandchild Label with Indicator */
.grandchild-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grandchild-indicator {
    color: var(--brand-600);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 4px;
}

.question-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.question-label .required {
    color: var(--error-600);
    margin-left: 4px;
}

/* ========================================
   Enhanced Form Inputs - Modal Forms
   ======================================== */
.form-input-enhanced,
.form-select-enhanced,
.form-textarea-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--neutral-300, #cbd5e1);
    border-radius: 10px;
    background: white;
    color: var(--text-primary, #0f172a);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input-enhanced:hover,
.form-select-enhanced:hover,
.form-textarea-enhanced:hover {
    border-color: var(--neutral-400, #94a3b8);
}

.form-input-enhanced:focus,
.form-select-enhanced:focus,
.form-textarea-enhanced:focus {
    outline: none;
    border-color: var(--brand-500, #005b9f);
    box-shadow: 0 0 0 3px rgba(0, 91, 159, 0.1);
}

.form-input-enhanced:disabled,
.form-select-enhanced:disabled,
.form-textarea-enhanced:disabled {
    background: var(--neutral-100, #f1f5f9);
    color: var(--text-muted, #64748b);
    cursor: not-allowed;
}

.form-input-enhanced::placeholder,
.form-textarea-enhanced::placeholder {
    color: var(--text-muted, #94a3b8);
}

.form-select-enhanced {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-textarea-enhanced {
    resize: vertical;
    min-height: 80px;
}
