/* assets/css/lead-gate.css */

.sp-cad-vault-section-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.sp-cad-vault-section-block h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.sp-cad-vault-section-block p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 13px;
    color: #64748b;
}

.sp-cad-vault-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-cad-download-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.sp-cad-download-trigger:hover {
    border-color: #f0a500;
    color: #f0a500;
    background: #fffcf5;
}

/* ── Modal Popup Window ────────────────────────────────────────────────────── */
#sp-lead-gate-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 450px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10002;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sp-lead-gate-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: block;
}

.sp-lead-gate-modal-content {
    position: relative;
    padding: 30px;
}

#sp-lead-gate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

#sp-lead-gate-close:hover {
    color: #334155;
}

.sp-lead-gate-header {
    margin-bottom: 25px;
    text-align: center;
}

.sp-lead-gate-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.sp-lead-gate-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.sp-lead-gate-group {
    margin-bottom: 18px;
}

.sp-lead-gate-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.sp-lead-gate-group input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.sp-lead-gate-group input:focus {
    border-color: #f0a500;
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
}

.sp-lead-gate-btn {
    background: #f0a500;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.sp-lead-gate-btn:hover {
    background: #e8920a;
}

#sp-lead-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
}

.sp-lead-gate-response-msg {
    margin-top: 12px;
    font-size: 13px;
    display: none;
    padding: 10px;
    border-radius: 6px;
}

.sp-lead-gate-response-msg.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: block;
}

.sp-lead-gate-response-msg.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    display: block;
}
