/* ====================================================
   Visitor Capture Pro — Front-end Modal Styles
   ==================================================== */

/* Overlay */
.vcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: vcpFadeIn .25s ease;
}

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

/* Modal box */
.vcp-modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 460px;
    animation: vcpSlideUp .3s ease;
}

@keyframes vcpSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.vcp-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: .25rem .5rem;
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.vcp-close:hover,
.vcp-close:focus {
    background: #f5f5f5;
    color: #111;
    outline: 2px solid #0073aa;
}

/* Header */
.vcp-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.vcp-modal-header h2 {
    margin: 0 0 .4rem;
    font-size: 1.4rem;
    color: #1a1a1a;
}
.vcp-subtitle {
    margin: 0;
    color: #666;
    font-size: .95rem;
}

/* Fields */
.vcp-field {
    margin-bottom: 1.1rem;
}
.vcp-field label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #333;
}
.vcp-field input[type="text"],
.vcp-field input[type="email"],
.vcp-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem .85rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #222;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
}
.vcp-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,.2);
    background: #fff;
}
.vcp-field input.vcp-invalid {
    border-color: #dc3232;
}

/* Errors */
.vcp-error {
    display: block;
    font-size: .8rem;
    color: #dc3232;
    margin-top: .3rem;
    min-height: 1.1em;
}

/* Consent */
.vcp-consent-wrap {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: .8rem 1rem;
}
.vcp-consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: .6rem;
    font-weight: 400 !important;
    cursor: pointer;
}
.vcp-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .1rem;
    accent-color: #0073aa;
    cursor: pointer;
}
.vcp-consent-text {
    font-size: .85rem;
    line-height: 1.5;
    color: #555;
}
.vcp-consent-text a {
    color: #0073aa;
}

/* Honeypot — visually hidden */
.vcp-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Submit button */
.vcp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 1.2rem;
}
.vcp-submit:hover  { background: #005d8f; }
.vcp-submit:active { transform: scale(.98); }
.vcp-submit:disabled { opacity: .65; cursor: not-allowed; }

/* Spinner */
.vcp-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vcpSpin .7s linear infinite;
}
.vcp-loading .vcp-spinner { display: inline-block; }
.vcp-loading .vcp-btn-text { opacity: .7; }

@keyframes vcpSpin {
    to { transform: rotate(360deg); }
}

/* Success */
.vcp-success {
    text-align: center;
    padding: 1.5rem;
    background: #f0f9f0;
    border: 1px solid #7ad03a;
    border-radius: 6px;
    color: #336600;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .vcp-modal {
        padding: 2rem 1.25rem 1.5rem;
    }
    .vcp-modal-header h2 {
        font-size: 1.2rem;
    }
}
