:root {
    --primary-color: #b8862e;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

.container-main {
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), #3a56d4);
    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 #eee;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.captcha-container {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin-top: 20px;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    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: #f0f5ff;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.2);
    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 0.2s ease;
    z-index: 10;
    padding: 0;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.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;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn i {
    margin-right: 8px;
}

.new-problem-btn {
    background-color: #6c757d;
    color: white;
}

.new-problem-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.verify-btn {
    background-color: var(--primary-color);
    color: white;
}

.verify-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
}

.submit-btn {
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #05c290;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 214, 160, 0.3);
}

.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(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

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

.loading-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    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(255,249,238, 0.8) !important;
    backdrop-filter: blur(10px);
}

.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c,
.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{
    color: #1A252F !important;
}

.jconfirm .jconfirm-box-container.jconfirm-no-transition{
    background: #fff !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;
    }
}