/* Ecomdrive Captcha Modal - Modern Minimal Design */

.ecomdrive-captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: captchaFadeIn 0.25s ease;
}

@keyframes captchaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes captchaSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.ecomdrive-captcha-content {
    position: absolute;
    background: #ffffff;
    padding: 36px 32px 32px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 340px;
    width: 90%;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: captchaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimal Icon */
.captcha-icon-header {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.captcha-icon-header svg {
    width: 26px;
    height: 26px;
    color: #6366f1;
}

.ecomdrive-captcha-content h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.ecomdrive-captcha-content .captcha-description {
    margin-bottom: 28px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* Question Card */
.captcha-question {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.captcha-text {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.captcha-text strong {
    display: block;
    color: #0f172a;
    font-size: 32px;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: -0.02em;
}

/* Answer Options Grid */
.captcha-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.captcha-option {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.captcha-option:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.captcha-option:active {
    transform: scale(0.95);
    box-shadow: none;
}

.captcha-option-correct {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    animation: captchaSuccess 0.3s ease;
}

.captcha-option-wrong {
    background: #fff1f2 !important;
    border-color: #fda4af !important;
    color: #e11d48 !important;
    animation: captchaShake 0.4s ease;
}

@keyframes captchaShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes captchaSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.captcha-error {
    color: #e11d48;
    font-size: 13px;
    margin: 16px 0 0;
    font-weight: 500;
}

/* Contact Info / Help Section */
.captcha-contact-info {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1.5px solid #a5b4fc;
    border-radius: 12px;
}

.captcha-contact-info > p {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.captcha-contact-info > p::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%236366f1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.captcha-contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.captcha-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    border: 1.5px solid #c7d2fe;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.captcha-contact-item:hover {
    border-color: #6366f1;
    background: #eef2ff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.15);
}

.captcha-contact-item .captcha-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #6366f1;
}

.captcha-contact-item span {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* Mobile responsive */
@media screen and (max-width: 380px) {
    .ecomdrive-captcha-content {
        padding: 28px 24px 24px;
        border-radius: 20px;
    }

    .captcha-icon-header {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .captcha-icon-header svg {
        width: 22px;
        height: 22px;
    }

    .ecomdrive-captcha-content h3 {
        font-size: 18px;
    }

    .captcha-text strong {
        font-size: 28px;
    }

    .captcha-options {
        gap: 8px;
    }

    .captcha-option {
        font-size: 16px;
        border-radius: 12px;
    }
}
