/* Strong scope to override theme & Elementor */
body .cp-verify-wrapper {
    all: initial;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont;
}



/* =====================================================
   CertifyPress – Professional Certificate Verification UI
   ===================================================== */

.cp-verify-wrapper {
    max-width: 980px;
    margin: 50px auto;
    padding: 0 15px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont;
}

/* -------------------------------
   SEARCH FORM
-------------------------------- */
body .cp-verify-wrapper .cp-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    padding: 22px;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

body .cp-verify-wrapper .cp-search-form input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    min-width: 260px;
}

body .cp-verify-wrapper .cp-search-form input:focus {
    outline: none;
    border-color: #2563eb;
}

body .cp-verify-wrapper .cp-search-form button {
    padding: 14px 26px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body .cp-verify-wrapper .cp-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

/* -------------------------------
   ALERTS
-------------------------------- */
.cp-alert {
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 25px;
    font-size: 15px;
}

.cp-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* -------------------------------
   RESULT CARD
-------------------------------- */
body .cp-verify-wrapper .cp-result-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: cpFadeIn 0.4s ease-in-out;
}

@keyframes cpFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------
   STATUS BAR
-------------------------------- */
.cp-status {
    display: flex;
    gap: 18px;
    padding: 26px 28px;
    align-items: center;
    background: linear-gradient(90deg, #dcfce7, #f0fdf4);
    border-bottom: 1px solid #bbf7d0;
}

.cp-check {
    background: #16a34a;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(22,163,74,0.45);
}

.cp-status strong {
    font-size: 18px;
    display: block;
}

.cp-status p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #065f46;
}

/* -------------------------------
   DETAILS GRID
-------------------------------- */
.cp-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    padding: 30px;
}

.cp-details div {
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cp-details span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.cp-details strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    color: #0f172a;
}

/* -------------------------------
   CERTIFICATE PREVIEW
-------------------------------- */
.cp-certificate-box {
    padding: 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.cp-certificate-box h4 {
    margin-bottom: 18px;
    font-size: 18px;
}

.cp-certificate-box img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.cp-certificate-box iframe {
    width: 100%;
    height: 650px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fff;
}

/* -------------------------------
   ACTION BAR
-------------------------------- */
.cp-actions {
    padding: 24px 30px;
    background: linear-gradient(90deg, #f8fafc, #eef2ff);
    text-align: right;
    border-top: 1px solid #e5e7eb;
}

body .cp-verify-wrapper .cp-result-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

body .cp-verify-wrapper .cp-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}

/* -------------------------------
   MOBILE OPTIMIZATION
-------------------------------- */
@media (max-width: 640px) {

    .cp-search-form {
        padding: 18px;
    }

    .cp-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-actions {
        text-align: center;
    }

    .cp-certificate-box iframe {
        height: 420px;
    }
}
