/* Form Styles - Form groups, inputs, buttons, checkboxes, radios, multiselect */

/* Checkbox and Column Selector Styles */
/* Checkbox group with column layout */
.checkbox-group {
    display: block;
    column-count: auto;
    column-width: 200px;
    column-gap: 1.5rem;
    margin: 0.5rem 0;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0.8rem;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d5f3f;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-option label {
    font-size: 10pt;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.checkbox-option input[type="checkbox"]:checked + label {
    color: #2d5f3f;
    font-weight: 500;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: #2d5f3f;
    cursor: pointer;
}

.checkbox-group .form-label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.column-selector-group {
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.column-selector-group.show {
    display: block;
}

.column-selector-group.hide {
    display: none;
}


/* Registration Form */
.registration-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 100px;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #00bcd4;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.required {
    color: #e91e63;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1);
}

/* Custom multiselect dropdown */
.custom-multiselect-container {
    position: relative;
    width: 100%;
}

.custom-multiselect-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    transition: border-color 0.3s ease;
}

.custom-multiselect-button:hover {
    border-color: #00bcd4;
}

.custom-multiselect-button:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1);
}

.multiselect-placeholder {
    flex-grow: 1;
    color: #333;
}

.multiselect-arrow {
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.custom-multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-multiselect-option:hover {
    background-color: #f8f9fa;
}

.custom-multiselect-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d5f3f;
    cursor: pointer;
}

.custom-multiselect-option label {
    font-size: 10pt;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    flex-grow: 1;
}

.custom-multiselect-option input[type="checkbox"]:checked + label {
    color: #2d5f3f;
    font-weight: 500;
}

/* Radio button group styles for field-specific search */
.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2d5f3f;
    cursor: pointer;
}

.radio-option label {
    font-size: 10pt;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.radio-option input[type="radio"]:checked + label {
    color: #2d5f3f;
    font-weight: 500;
}

/* Mobile responsive stacking */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Scale question styling (for 1-10 rating scales) */
.scale-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
    align-items: center;
}

.scale-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 36px;
}

.scale-label:hover {
    background-color: #f8f9fa;
}

.scale-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2d5f3f;
    cursor: pointer;
    margin: 0;
}

.scale-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
    min-width: 18px;
}

.scale-label input[type="radio"]:checked + .scale-text,
.scale-label:has(input[type="radio"]:checked) .scale-text {
    color: #2d5f3f;
    font-weight: 600;
}

/* Scale option styling for question renderer */
.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 36px;
}

.scale-option:hover {
    background-color: #f8f9fa;
}

.scale-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2d5f3f;
    cursor: pointer;
    margin: 0;
}

.scale-option label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
    min-width: 18px;
    cursor: pointer;
}

.scale-option input[type="radio"]:checked + label {
    color: #2d5f3f;
    font-weight: 600;
}

/* Mobile responsive scale stacking */
@media (max-width: 768px) {
    .scale-group {
        gap: 0.5rem;
    }
    
    .scale-label {
        min-width: 32px;
        padding: 0.3rem;
    }
    
    .scale-option {
        min-width: 32px;
        padding: 0.3rem;
    }
}

.form-help {
    font-size: 9pt;
    color: #666;
    margin-top: 0.25rem;
    display: block;
    font-style: italic;
    text-align: left;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.password-requirements {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    height: 38px;
    padding: 0 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 10pt;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.btn-primary {
    background: #2d5f3f;
    color: white;
}

.btn-primary:hover {
    background: #1e4029;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #2d5f3f;
}

.cta-button {
    display: inline-block;
    background: #2d5f3f;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 10pt;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
}

.cta-button:hover {
    background: #1e4029;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.cta-button[type="submit"] {
    border: none;
    cursor: pointer;
}

.cta-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cta-button.cta-compact {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0;
}

.submit-btn {
    width: 100%;
    background: #00bcd4;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #00acc1;
}

.save-btn, .cancel-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

.save-btn {
    background-color: #2d5f3f;
    color: white;
}

.save-btn:hover {
    background-color: #245f3a;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.confirmation-btn {
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    line-height: 1.2;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.login-link a {
    color: #00bcd4;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}
