/**
 * Frontend stylesheet for the Mandatory Lead Collection Popup.
 * Handles the absolute full-screen lock overlay, backdrop blur, forms styling, and responsive behaviors.
 *
 * @package    Custom_Lead_Verifier
 */

/* 1. Full Screen Overlay Wrapper (Locks the whole webpage layout) */
.clv-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85); /* Dark elegant slate background tint */
    backdrop-filter: blur(8px); /* Blurs out underlying background website data */
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999999 !important; /* Forces placement above all theme view containers */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 2. Centralized Card Container Modal Box */
.clv-popup-box {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    animation: clvFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrance smooth slide animation */
@keyframes clvFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Header Texts Configurations */
.clv-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.clv-popup-header h2 {
    margin: 0 0 8px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.clv-popup-header p {
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

/* 4. Form Fields & Layouts Control Elements */
.clv-form-step {
    display: block;
}

.clv-field-group {
    margin-bottom: 20px;
    text-align: left;
}

.clv-field-group label {
    display: block !important;
    margin-bottom: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.clv-field-group input {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.clv-field-group input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important; /* Solid blue brand focus highlights */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* 5. Custom Alerts Notice Feedbacks Boxes */
.clv-alert-msg {
    padding: 10px 12px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: left;
}

.clv-alert-msg.error-msg {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.clv-alert-msg.success-msg {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.clv-info-note {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 15px 0;
    text-align: center;
}

/* 6. Buttons Structural Configurations */
.clv-btn-primary {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
    box-sizing: border-box !important;
}

.clv-btn-primary:hover {
    background: #1d4ed8 !important;
}

.clv-btn-primary:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed !important;
}

.clv-btn-link {
    display: block !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    padding: 0 !important;
    margin-top: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    text-align: center !important;
}

.clv-btn-link:hover {
    color: #334155 !important;
}

/* Force hidden characters constraints for OTP Box Input fields */
#clv_otp_code {
    text-align: center;
    font-size: 22px !important;
    letter-spacing: 6px;
    font-weight: 700;
}