/* Pro JotForm Host Styles */
.projfh-wrapper { 
    margin: 20px 0; 
    position: relative;
}
/* Pro JotForm Host Styles */
.projfh-wrapper { margin: 20px 0; }
.no-paste-field { border: 2px solid #ff0000 !important; }

/* Draft Management Styles */
.projfh-draft-actions { 
    margin: 15px 0; 
    padding: 15px; 
    background: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 4px;
}

.projfh-draft-actions .button { 
    margin-right: 10px; 
    margin-bottom: 5px;
}

.projfh-save-draft {
    background: #f0ad4e;
    border-color: #eea236;
    color: white;
}

.projfh-save-draft:hover {
    background: #ec971f;
    border-color: #d58512;
    color: white;
}

.projfh-load-draft {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.projfh-loading {
    opacity: 0.7;
    pointer-events: none;
}

.projfh-error-field {
    border-color: #dc3232 !important;
    background-color: #ffeaea !important;
}
.projfh-success {
    color: green; 
    padding: 10px; 
    background: #f0fff0; 
    border: 1px solid green;
    margin: 10px 0;
    border-radius: 4px;
}

.projfh-error {
    color: red; 
    padding: 10px; 
    background: #fff0f0; 
    border: 1px solid red;
    margin: 10px 0;
    border-radius: 4px;
}

.no-paste-field {
    border: 2px solid #ff0000 !important;
    background-color: #fff0f0 !important;
    animation: shake 0.5s ease-in-out;
}

.projfh-error-field {
    border-color: #ff0000 !important;
    background-color: #fff0f0 !important;
}

.projfh-loading {
    opacity: 0.7;
    pointer-events: none;
}

.projfh-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: black; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 black, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 black, .5em 0 0 black; }
}
/* Pro JotForm Host Styles */
.projfh-wrapper { margin: 20px 0; }
.no-paste-field { border: 2px solid #ff0000 !important; }

/* Draft Management Styles */
.projfh-draft-actions { 
    margin: 20px 0; 
    padding: 15px; 
    background: #f8f9fa; 
    border: 1px solid #dee2e6; 
    border-radius: 4px;
}

.projfh-save-draft {
    background: #28a745 !important;
    color: white !important;
    border: 1px solid #28a745 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

.projfh-save-draft:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

.projfh-save-draft:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
}

.projfh-load-draft {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.projfh-loading {
    opacity: 0.7;
    pointer-events: none;
}

.projfh-error-field {
    border-color: #dc3232 !important;
    background-color: #ffeaea !important;
}
/* Pro JotForm Host Styles */
.projfh-wrapper { margin: 20px 0; }
.no-paste-field { border: 2px solid #ff0000 !important; }

/* Draft Management Styles for JotForm */
.projfh-draft-actions { 
    margin: 20px 0 !important; 
    padding: 20px !important; 
    background: #f8f9fa !important; 
    border: 2px solid #dee2e6 !important; 
    border-radius: 8px !important;
    text-align: center !important;
}

.projfh-save-draft {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 16px !important;
    margin: 5px !important;
}

.projfh-save-draft:hover {
    background: #218838 !important;
}

.projfh-save-draft:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
}

.projfh-load-draft {
    border-top: 1px solid #dee2e6 !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
}

.projfh-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Toast notifications */
.projfh-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 10000;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Toast notifications */
.projfh-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 10000;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .projfh-wrapper {
        margin: 10px 0;
    }
    
    .projfh-success,
    .projfh-error {
        padding: 8px;
        font-size: 14px;
    }
}

/* Form styling enhancements */
form[data-projfh-form="true"] {
    position: relative;
}

form[data-projfh-form="true"].projfh-loading {
    pointer-events: none;
}

form[data-projfh-form="true"].projfh-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

form[data-projfh-form="true"].projfh-loading::after {
    content: 'Submitting...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 11;
}