/* ================================
   Loan Comparison Pro – Frontend
================================ */

.lcp-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

/* ---------------- Tabs ---------------- */

.lcp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.lcp-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lcp-tab:hover {
    background: #f3f4f6;
}

.lcp-tab.active {
    background: #0A194E;
    color: #ffffff;
    border-color: #0A194E;
}

/* ---------------- Cards ---------------- */

.lcp-cards {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lcp-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.lcp-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* ---------------- Card Header ---------------- */

.lcp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%); 
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
}

.lcp-bank-name {
    color: #0A194E;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lcp-bank-name::before {
    content: "🏦";
    font-size: 18px;
}

/* ---------------- Apply Button ---------------- */

.lcp-apply-btn {
    background-color: #1dd29f; /* Vibrant Green */
    color: #ffffff;
    border-radius: 8px;
    padding: 5px 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(29, 210, 159, 0.2);
}

.lcp-apply-btn:hover {
     background-color: #0A194E; /* Hovers to Navy */
    box-shadow: 0 6px 15px rgba(10, 25, 78, 0.2);
}

/* ---------------- Card Body ---------------- */

.lcp-card-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 12px 20px 12px 20px;
}

.lcp-card-body div {
    font-size: 13px;
    color: #374151;
}

.lcp-card-body strong {
    display: block;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.lcp-card-body span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: normal;
}

/* ---------------- Modal Body ---------------- */


/* Modal root */
#lcp-modal {
    position: fixed;      /* IMPORTANT */
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;     /* ABOVE HEADER */
    display: none;
}

/* Active */
#lcp-modal.active {
    display: block;
}

/* Overlay */
.lcp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1;
}

/* Modal box */
.lcp-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 40px;
    border-radius: 10px;
    z-index: 2;

    /* Animation */
    opacity: 0;
    transition: all 0.35s ease;
}

/* Animate in */
#lcp-modal.active .lcp-modal-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.lcp-modal-content h3 {
    font-size: 16px;
    font-weight: bold;
}

/* Close */
.lcp-close {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.lcp-modal-content input,
.lcp-modal-content select,
.lcp-modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.lcp-modal-content input:focus {
    outline: none;
    border-color: #0db14b;
}

.lcp-modal-content input[type="submit"] {
    background: #0a126e;
    color: #fff;
    border-radius: 999px;
    padding: 14px;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

#lcp-bank-field,
#lcp-loan-field {
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    cursor: not-allowed;
}


.lcp-modal-content input{
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 40px;
    padding: 0 15px !important;
    margin-bottom: 15px !important;
}

/* ===== Consent Wrapper ===== */
.wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 14px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Hide default checkbox */
.wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 7px !important;
    cursor: pointer;
    position: relative;
    margin-top: 3px;
    transition: all 0.2s ease;
}

.wpcf7-acceptance label {
    display: flex;
    gap: 7px;
}

/* Checked state */
.wpcf7-acceptance input[type="checkbox"]:checked {
    background: #000;
    border-color: #000;
}

/* Tick */
.wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

/* Text clickable */
.wpcf7-acceptance span {
    cursor: pointer;
        font-size: 12px;
        margin: 0;
}

/* Validation error */
.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 6px;
}

#lcp-modal .wpcf7-spinner{
    display: none !IMPORTANT;
}



/* ---------------- Responsive ---------------- */

@media (max-width: 992px) {
    .lcp-card-body {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .lcp-tabs {
        flex-wrap: wrap;
    }

    .lcp-card-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .lcp-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---------------- Hide / Show via JS ---------------- */

.lcp-card.hidden {
    display: none;
}
