/* Dynamic Form Plugin Styles */
.form-title {
    color: #ff6b35;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff6b35;
}

.checkbox-group-da > label{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.section-title {
    color: #ff6b35;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.helper-text {
    font-weight: 400;
    color: #666;
    font-style: italic;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-group.inline {
    display: inline-flex;
    margin-left: 15px;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 15px;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.radio-group label:hover {
    border-color: #ff6b35;
    background: #fff5f2;
}

.radio-group input[type="radio"] {
    margin: 0;
    accent-color: #ff6b35;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px 15px;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    border-color: #ff6b35;
    background: #fff5f2;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    accent-color: #ff6b35;
    transform: scale(1.2);
}

.conditional-field,
.conditional-fields {
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 15px;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: 15px;
    }
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    margin-top: 15px;
    color: #ff6b35;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b35;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-group.inline {
        flex-direction: row;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {

    
    .form-section {
        padding: 15px;
    }
    
    .radio-group.inline {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {

    
    .submit-btn,
    .loading {
        display: none;
    }
    
    .form-section {
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
.form-group input:focus,
.form-group textarea:focus,
.radio-group label:focus-within,
.checkbox-group label:focus-within {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
   
    
    .form-group input,
    .form-group textarea {
        border: 2px solid #000;
    }
    
    .submit-btn {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}