.cm-verification-wrapper {
    max-width: 800px;
    margin: 60px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0 20px;
}

/* Modern Card Design */
.cm-search-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.cm-search-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: #FF6B6B;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.cm-search-box h2 {
    margin-bottom: 30px;
    color: #2d3436;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cm-form-group {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.cm-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #f1f3f5;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cm-input:focus {
    border-color: #4facfe;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
    outline: none;
}

.cm-submit {
    padding: 16px 35px;
    background-color: #4facfe;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.cm-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
}

.cm-submit:active {
    transform: translateY(-1px);
}

/* Result Card */
.cm-result-card {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-result-header {
    background-color: #0ba360;
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.cm-result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.cm-result-body {
    padding: 30px 40px;
}

.cm-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed #e9ecef;
}

.cm-result-row:last-child {
    border-bottom: none;
}

.cm-label {
    font-weight: 600;
    color: #868e96;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-value {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
}

/* Error State */
.cm-error {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    color: #e03131;
    border-radius: 12px;
    text-align: center;
    border-left: 5px solid #ff8787;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(255, 135, 135, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* PDF Preview Section */
.cm-pdf-section {
    margin-top: 25px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.cm-pdf-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    text-align: center;
}

.cm-pdf-preview {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    background: white;
}

.cm-pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cm-image-preview {
    width: 100%;
    max-width: 100%;
    height: 500px;
    /* Fixed height */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin: 20px auto 25px !important;
    /* outer margin for spacing */
    padding: 20px !important;
    /* inner padding around the image */
    background: #f8f9fa;
    /* Light background for transparent images */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* Include padding in width calculations */
}

.cm-image-preview img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    /* Ensures image fits within height without distortion */
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cm-pdf-actions {
    text-align: center;
    display: flex;
    justify-content: center !important;
    width: 100%;
    padding: 20px 0;
    /* Add top/bottom padding around button area */
}

.cm-pdf-actions .cm-download-btn {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 12px 30px !important;
        /* Button internal padding (smaller, more compact) */
        width: auto !important;
        max-width: none !important;
        /* Natural width based on content */
    background-color: #f5576c !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    line-height: normal;
    margin: 0;
    /* Margin handled by parent padding */
}

.cm-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.5);
    color: white !important;
    text-decoration: none !important;
}

.cm-download-btn:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
    .cm-form-group {
        flex-direction: column;
    }

    .cm-search-box {
        padding: 25px;
    }

    .cm-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cm-value {
        text-align: left;
    }

    .cm-pdf-preview,
    .cm-image-preview {
        height: 400px;
    }

    .cm-pdf-section {
        padding: 20px;
    }

    .cm-download-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}