/* Fundraiser Forms - Loading & UI Enhancements */

/* Loading Overlay */
.ssb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}

.ssb-loading-overlay.active {
    display: flex;
}

.ssb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9F76BE;
    border-radius: 50%;
    animation: ssb-spin 1s linear infinite;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.ssb-loading-content {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.ssb-loading-content h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 18px;
}

@keyframes ssb-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form Loading States */
.ssb-form-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.ssb-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Button Loading State */
.ssb-button-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.ssb-button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9F76BE;
    border-radius: 50%;
    animation: ssb-spin 0.8s linear infinite;
}

/* Inline Spinner */
.ssb-inline-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #9F76BE;
    border-radius: 50%;
    animation: ssb-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Message Styles */
.ssb-form-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.ssb-form-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ssb-form-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ssb-form-message.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Form Field Error States */
.ssb-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.ssb-field-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success Checkmark */
.ssb-success-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.ssb-success-check::before {
    content: '✓';
    font-weight: bold;
}


/* National Expansion Application Styles */
.ssb-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.ssb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ssb-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ssb-checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
}