/* public/css/verifier.css */

.cpv-modal {
    display: flex !important;
    position: fixed !important;
    z-index: 10000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.cpv-modal.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.cpv-modal-content {
    background: #ffffff;
    padding: 40px 35px !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    text-align: center !important;
    position: relative !important;
    width: 90% !important;
    max-width: 480px !important;
    transform: translateY(-30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e0f2f7;
}

.cpv-modal.is-active .cpv-modal-content {
    transform: translateY(0) scale(1);
}

.cpv-modal-content h2 {
    color: #007bb6 !important;
    margin-top: 0 !important;
    font-size: 2.1em !important;
    font-weight: 600 !important;
    line-height: 1.2;
}

.cpv-modal-content p {
    color: #555555 !important;
    font-size: 1.05em !important;
    line-height: 1.7 !important;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#productCodeInput {
    width: calc(100% - 40px) !important;
    padding: 16px !important;
    margin-bottom: 25px !important;
    border: 2px solid #b0e0e6 !important;
    border-radius: 8px !important;
    font-size: 1.5em !important;
    text-align: center !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    color: #444444;
}

#productCodeInput::placeholder {
    color: #a0c0c5;
    font-size: 18px;
    font-weight: normal;
}

#productCodeInput:focus {
    border-color: #007bb6 !important;
    outline: none !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(0, 123, 182, 0.2);
}

#submitCodeBtn {
    background-color: #007bb6 !important;
    color: white !important;
    padding: 15px 40px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 123, 182, 0.3);
}

#submitCodeBtn:hover {
    background-color: #005a8a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 182, 0.4);
}

#verificationResult {
    margin-top: 25px !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    text-align: left !important;
    min-height: 60px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: none;
}

#verificationResult.success {
    background-color: #e0f7fa !important;
    color: #2e7d32 !important;
    border-color: #80cbc4 !important;
}

#verificationResult.error {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border-color: #ef9a9a !important;
}

.cpv-spinner {
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    border-left-color: #fff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    animation: spin 0.8s linear infinite !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 10px !important;
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cpv-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #aaaaaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.cpv-close-button:hover,
.cpv-close-button:focus {
    color: #555555;
    opacity: 1;
    outline: none;
}

@media (max-width: 500px) {
    .cpv-modal-content {
        padding: 30px 20px !important;
        max-width: 95% !important;
    }
    .cpv-modal-content h2 {
        font-size: 1.8em !important;
    }
    .cpv-modal-content p {
        font-size: 0.9em !important;
    }
    #productCodeInput {
        font-size: 1.3em !important;
        padding: 12px !important;
    }
    #submitCodeBtn {
        font-size: 1.1em !important;
        padding: 12px 25px !important;
    }
    .cpv-close-button {
        font-size: 24px;
        top: 10px;
        right: 12px;
    }
}