
/* =========================================
   EVOLVE BIOLABS - PRODUCT AUTHENTICATION
========================================= */

.pca-widget {
    --pca-primary: #0076a8;
    --pca-secondary: #00aeef;
    --pca-heading: #123e63;
    --pca-text: #172b3e;
    --pca-border: #dce5ed;
    --pca-success: #16a34a;

    width: 100%;
    max-width: 775px;
    margin: 30px auto;
    color: var(--pca-text);
    font-family: inherit;
    box-sizing: border-box;
}

.pca-widget *,
.pca-widget *::before,
.pca-widget *::after {
    box-sizing: border-box;
}

/* =========================================
   COMPANY LOGO
========================================= */

.pca-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    text-align: center;
}

.pca-brand-logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 85px;
    object-fit: contain;
}

/* =========================================
   FORM CONTAINER
========================================= */

.pca-form {
    display: grid;
    gap: 17px;
    padding: 32px;
    border: 1px solid var(--pca-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 50, 75, 0.07);
}

/* =========================================
   FORM FIELDS
========================================= */

.pca-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pca-field label {
    color: var(--pca-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.pca-field input {
    width: 100%;
    min-height: 58px;
    padding: 13px 16px;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #172b3e;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pca-field input:focus {
    border-color: var(--pca-secondary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.13);
}

.pca-field input::placeholder {
    color: #94a3b8;
}

.pca-field small {
    color: #66809a;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================
   VERIFY BUTTON
========================================= */

.pca-submit {
    width: 100%;
    min-height: 60px;
    margin-top: 3px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(
        110deg,
        var(--pca-primary),
        var(--pca-secondary)
    );
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.pca-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 118, 168, 0.23);
}

.pca-submit:disabled {
    opacity: .65;
    cursor: wait;
}

/* =========================================
   INLINE ERROR
========================================= */

.pca-inline-message {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.6;
}

.pca-inline-message:empty {
    display: none;
}

/* =========================================
   MODAL BACKDROP
========================================= */

.pca-modal[hidden] {
    display: none !important;
}

.pca-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pca-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 55, 0.64);
    backdrop-filter: blur(3px);
}

/* =========================================
   MODAL PANEL
========================================= */

.pca-modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px 35px 32px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .22);
    animation: pcaModalIn .25s ease-out;
}

@keyframes pcaModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   MODAL CLOSE
========================================= */

.pca-modal-close {
    position: absolute;
    top: 13px;
    right: 17px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pca-modal-close:hover {
    color: var(--pca-heading);
}

/* =========================================
   LARGE STATUS ICON
========================================= */

.pca-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 88px;

    margin: 0 auto 22px;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 55px;
    font-weight: 700;
    line-height: 1;
}

/* SUCCESS - GREEN VERIFIED */

/* Verified - Green */
.pca-success {
    background: #dcfce7;
    color: #16a34a;
    border: 3px solid #86efac;
}

/* Invalid - Red */
.pca-error {
    background: #fee2e2;
    color: #dc2626;
    border: 3px solid #fca5a5;
}

/* Large status icon */
.pca-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    font-size: 55px;
    font-weight: 700;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #ffffff;
   
    text-decoration: none;
}

/* =========================================
   MODAL CONTENT
========================================= */

.pca-modal-panel h3 {
    margin: 0 0 13px;
    color: var(--pca-heading);
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

.pca-modal-body {
    margin: 0 0 27px;
    color: #53677d;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* =========================================
   MODAL OK BUTTON
========================================= */

.pca-modal-ok {
    min-width: 135px;
    min-height: 53px;
    padding: 12px 25px;
    border: none;
    border-radius: 9px;

    background: linear-gradient(
        110deg,
        var(--pca-primary),
        var(--pca-secondary)
    );

    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.pca-modal-ok:hover {
    box-shadow: 0 6px 18px rgba(0, 118, 168, .2);
    transform: translateY(-1px);
}

body.pca-modal-open {
    overflow: hidden;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.pca-widget button:focus-visible,
.pca-widget input:focus-visible {
    outline: 3px solid rgba(0, 174, 239, .35);
    outline-offset: 3px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {
    .pca-widget {
        max-width: 100%;
        margin: 22px auto;
    }

    .pca-form {
        padding: 25px;
    }

    .pca-modal-panel {
        max-width: 480px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {
    .pca-widget {
        margin: 15px auto;
    }

    .pca-brand-logo {
        margin-bottom: 20px;
    }

    .pca-brand-logo img {
        max-width: 175px;
        max-height: 70px;
    }

    .pca-form {
        padding: 20px 17px;
        gap: 15px;
        border-radius: 13px;
    }

    .pca-field label {
        font-size: 15px;
    }

    .pca-field input {
        min-height: 52px;
        font-size: 15px;
    }

    .pca-submit {
        min-height: 54px;
        font-size: 16px;
    }

    .pca-modal {
        padding: 15px;
    }

    .pca-modal-panel {
        padding: 38px 20px 25px;
        border-radius: 16px;
    }

    .pca-modal-icon {
        width: 78px;
        height: 78px;
        font-size: 48px;
    }

    .pca-modal-panel h3 {
        font-size: 21px;
    }

    .pca-modal-body {
        font-size: 15px;
    }
}
