:root {
    --primary-color: #00EDBF;
    --success-color: #00EDBF;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --dark-color: #0D0D38;
    --light-color: #F6F5FF;
}

.container-main {
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(0, 237, 191, 0.22);
}

.form-header {
    background: linear-gradient(135deg, rgba(0, 237, 191, 0.95), rgba(13, 13, 56, 0.95));
    color: white;
    padding: 24px 30px;
    text-align: center;
}

.form-body {
    padding: 30px;
}

.form-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.form-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.form-section {
    margin-bottom: 25px;
}

.section-title {
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 237, 191, 0.18);
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.captcha-container {
    background-color: rgba(246, 245, 255, 0.7);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 237, 191, 0.18);
    margin-top: 20px;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(13, 13, 56, 0.88);
    margin-bottom: 20px;
    text-align: center;
}

.image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    position: relative;
}

.circle-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    overflow: hidden;
    position: relative;
    background-color: var(--light-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-image {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all linear 0.3s;
    z-index: 10;
    padding: 0;
}

.prev-btn,
.next-btn {
    background: linear-gradient(135deg, rgba(13, 13, 56, 0.95), rgba(0, 237, 191, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-btn:hover {
    transform: translateY(calc(-50% - 2px)) scale(1.08);
    box-shadow: 0 0 15px 0 rgba(0, 237, 191, 0.22);
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.alignment-guide {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: rgba(239, 71, 111, 0.7);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
    display: none;
}

.alignment-guide.active {
    display: block;
}

.vertical-guide {
    width: 3px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.captcha-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all linear 0.3s;
}

.control-btn i {
    margin-right: 8px;
}

.new-problem-btn {
    background-color: rgba(13, 13, 56, 0.92);
    color: white;
}

.new-problem-btn:hover {
    background-color: rgba(13, 13, 56, 1);
}

.verify-btn {
    background-color: var(--primary-color);
    color: rgba(13, 13, 56, 0.95);
}

.verify-btn:hover {
    box-shadow: 0 0 15px 0 rgba(0, 237, 191, 0.22);
    color: #ffffff;
}

.submit-btn {
    
    width: 100%;
    margin-top: 20px;
}


.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 56, 0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.loadingOverlay-active {
    display: flex;
}

.loading-content {
    background: rgba(13, 13, 56, 0.92);
    border: 1px solid rgba(0, 237, 191, 0.22);
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.18);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.captcha-status {
    text-align: center;
    font-weight: 600;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:50px;
    flex-direction: column;
    gap:12px;
    z-index:2;
}
.captcha-status i{
    font-size:30px;
}
.captcha-verified {
    color:#ffffff;
    background-color:rgb(6,214,160,.95);
}

.captcha-not-verified {
    color:#ffffff;
    background-color:rgb(239,71,111,.95);
}

.jconfirm.jconfirm-supervan .jconfirm-bg{
    background: rgba(13,13,56, 0.78) !important;
}

.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c,
.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{
    color: rgba(255,255,255,0.92) !important;
}

.jconfirm .jconfirm-box-container.jconfirm-no-transition{
    background: rgba(13,13,56,0.96) !important;
    border: 1px solid rgba(0, 237, 191, 0.22) !important;
    padding: 25px !important;
    border-radius: 20px !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{
    transition: all linear 0.3s !important;
}

@media (max-width: 768px) {
    .image-container {
        width: 240px;
        height: 240px;
    }

    .form-body {
        padding: 20px;
    }

    .captcha-controls {
        flex-direction: column;
        align-items: center;
    }

    .control-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .image-container {
        width: 200px;
        height: 200px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: -20px;
    }

    .next-btn {
        right: -20px;
    }
}