.elevanex-direct-checkout-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.elevanex-direct-checkout-button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: elevanex-spin 1s linear infinite;
    z-index: 1;
}

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

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

.elevanex-direct-checkout-button.loading .elementor-button-content-wrapper {
    visibility: hidden;
}

/* ======================================================= */
/* =================Participant Form==================== */
/* ======================================================= */

.elevanex-participant-form {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.character-info {
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0px;
    border: 5px solid #3b0717;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    padding: 20px;
    border-radius: 0px;
    text-align: center;
    border: 1px solid #3b0717;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #6c757d;
    transition: all 0.3s ease;
}

.stat-item.total-chars::before {
    background: linear-gradient(90deg, #0073aa, #005a87);
}

.stat-item.male-chars::before {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.stat-item.female-chars::before {
    background: linear-gradient(90deg, #e83e8c, #c51162);
}

.stat-item.registered::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.stat-item.remaining.available::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.stat-item.remaining.full::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Section */
.progress-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3b0717;
}

.progress-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #3b0717;
    border-radius: px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%);
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 0;
    }
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .character-info {
        padding: 20px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flex Grid System for Participant Groups */
.participant-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.participant-group {
    flex: 1 1 100%;
    /* Mobile: 1 column */
    border: 1px solid #3b0717;
    padding: 20px;
    border-radius: 0px;
    box-sizing: border-box;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .participant-group {
        flex: 1 1 calc(50% - 10px);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .participant-group {
        flex: 1 1 calc(33.333% - 14px);
    }
}



.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-field input, .form-field select {
    width: 100%;
    padding: 10px;
    border-radius: 0px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-field input:focus, .form-field select:focus {
    outline: none;
}

.submit-btn {
    padding: 20px 30px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #005a87;
}

/* Form container responsive */
.participant-registration-form {
    width: 100%;
}

.elevanex-error {
    color: #d63638;
    background: #fcf0f1;
    padding: 12px;
    border-radius: 5px;
    margin: 20px 0;
}

.elevanex-success {
    color: #00a32a;
    background: #f0f6fc;
    padding: 12px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .elevanex-participant-form {
        padding: 15px;
        margin: 10px;
    }

    .participant-group {
        padding: 15px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ======================================================= */
/* =================/Participant Form==================== */
/* ======================================================= */