.ecf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ecf-loading {
    text-align: center;
    padding: 40px;
}

.ecf-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ecf-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.ecf-form-group {
    margin-bottom: 20px;
}

.ecf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ecf-form-group input[type="text"],
.ecf-form-group input[type="email"],
.ecf-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ecf-checkbox-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
}

.ecf-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.required {
    color: #e74c3c;
}

.ecf-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ecf-btn-primary {
    background-color: #3498db;
    color: white;
}

.ecf-btn-primary:hover {
    background-color: #2980b9;
}

.ecf-btn:disabled {
    cursor: not-allowed;
}

.ecf-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.ecf-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ecf-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ecf-returning-user {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.ecf-document-list {
    margin-top: 30px;
}

.ecf-document-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ecf-document-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.ecf-download-btn {
    background-color: #27ae60;
    color: white;
}

.ecf-download-btn:hover:not(:disabled) {
    background-color: #229954;
}

/* Keep download button green when disabled */
.ecf-download-btn:disabled {
    background-color: #27ae60 !important;
    color: white !important;
    opacity: 0.8;
}

.ecf-verified-content {
    margin-bottom: 30px;
}

.ecf-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50%;
    animation: ecf-spin 0.6s linear infinite;
    vertical-align: middle;
}

/* Ensure spinner is always visible in disabled button */
.ecf-download-btn:disabled .ecf-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
}

@keyframes ecf-spin {
    to { transform: rotate(360deg); }
}