/* ===================================
   CUSTOM EMOJI CAPTCHA STYLES
   =================================== */

/* Form Elements */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-control {
    border: 1px solid var(--text-1, #000) !important;
    color: var(--text-1, #000);
    border-radius: 0px;
    box-shadow: none;
    outline: none;
    padding: 10px;
    background-color: var(--bg-pink, #fff);
}

.form-control:focus {
    box-shadow: none;
    outline: none;
    background-color: var(--bg-pink, #fff);
    border-color: #DBA41B;
    color: var(--text-1, #000);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, .5);
    opacity: 1;
}

.form-control::-ms-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

html.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, .5);
    opacity: 1;
}

html.dark-mode .form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, .5);
}

/* CAPTCHA Container */
.recaptch-cover {
    /* border: 1px solid var(--text-1, #000) !important; */
    padding: 0px;
    position: relative;
    background-color:  #19153d;
    padding: 12px;
    border-radius: 12px;
}


.recaptch-cover-header {
    padding: 10px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 1px solid var(--text-1, #000) !important; */
}

.recaptch-cover-header label {
    margin-bottom: 0;
    font-weight: 500;
}

.recaptch-cover-header button {
    background: #028c6e;
    color: var(--text-1, #fcf4f4);
    border-color: #54f6d4;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
}

.recaptch-cover-header button:active,
.recaptch-cover-header button:hover {
    background: #028c6e;
    border-color: var(--text-1, #000);
}

.recaptch-cover-body {
    min-height: 300px;
    padding: 30px 20px 0px 20px;
}

#captchaContainer {
    max-width: 463px;
    margin: 0 auto;
}

/* CAPTCHA Grid */
.captcha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    height: 250px;
    margin-bottom: 1.5rem;
}

.captcha-grid-item {
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Emoji Options */
.emoji-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.emoji-option {
    font-size: 2rem;
    cursor: pointer;
    padding: 0px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0px;
    background-color: var(--bg-3, #77d7c2);
    border: 2px solid transparent;
    flex: 1;
    min-width: 60px;
    text-align: center;
    padding: 12px;
}

.emoji-option:hover {
    background-color: #028c6e;
}

.emoji-option.selected {
    border-color: var(--text-1, #000);
    background-color: #028c6e;
}

/* CAPTCHA Feedback */
.captcha-feedback {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    min-height: 24px;
}

.captcha-success {
    color: #198754;
}

.captcha-error {
    color: #dc3545;
}

/* Submit Button */
#submitBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 11111;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #ffffff;
}

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

/* Error States */
.error {
    color: red;
    display: none;
}

.error-input {
    border-color: #dc3545 !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .captcha-grid {
        height: 200px;
    }
    
    .emoji-option {
        font-size: 1.5rem;
        min-width: 50px;
    }
    
    .recaptch-cover-body {
        padding: 20px 15px 0px 15px;
    }
}

@media (max-width: 480px) {
    .captcha-grid {
        height: 150px;
    }
    
    .emoji-option {
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .recaptch-cover-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

