/* Personal Loan page (resources/views/frontend/pages/personal-loan.blade.php).
   Everything below the hero. Follows the home page style (.wcb-about-*): pill kicker,
   heading with a green accent, text + white card split, airy sections.
   The hero, mobile enquiry bar and closing CTA reuse loan-against-property.css. */

.pl {
    --pl-title: #0f172a;
    --pl-text: #475569;
    --pl-list: #334155;
    --pl-muted: #62728a; /* was #64748b; meets WCAG AA contrast on the light grey panels too */
    --pl-navy: #0f4c81;
    --pl-navy-tint: rgba(15, 76, 129, 0.08);
    --pl-green: #16a34a;
    --pl-green-dark: #15803d;
    --pl-green-tint: #f0fdf4;
    --pl-line: #e7edf5;
    --pl-soft: #f5f8fc;
    --pl-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.18);
    color: var(--pl-text);
}

.pl [hidden] { display: none !important; }
.pl a { color: var(--pl-navy); }
.pl a:focus-visible, .pl button:focus-visible, .pl summary:focus-visible, .pl input:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
    border-radius: 10px;
}

/* Section links */
.pl-secbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pl-line);
}
.pl-secbar ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.pl-secbar ul::-webkit-scrollbar { display: none; }
.pl-secbar a {
    display: block;
    padding: 15px 14px 13px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--pl-muted);
    border-bottom: 2px solid transparent;
}
.pl-secbar a.is-active, .pl-secbar a:hover { color: var(--pl-navy); border-bottom-color: var(--pl-navy); }

/* Sections */
.pl-sec { padding: 100px 0; scroll-margin-top: 60px; background: #fff; }
.pl-soft { background: var(--pl-soft); }
.pl-kicker {
    justify-self: start;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--pl-navy-tint);
    color: var(--pl-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pl .pl-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--pl-title);
    text-wrap: balance;
}
.pl .pl-title span { color: var(--pl-green); }
.pl-lead { margin: 0; font-size: 17px; line-height: 1.75; color: var(--pl-text); }
.pl-intro { display: grid; gap: 16px; min-width: 0; }
.pl-center { max-width: 760px; margin: 0 auto 56px; text-align: center; justify-items: center; }
.pl-center .pl-kicker { justify-self: center; }
.pl-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}
.pl-split.pl-top { align-items: start; }
.pl-flip > :first-child { order: 2; }
.pl-note { margin: 4px 0 0; font-size: 15px; color: var(--pl-text); }
.pl-note a, .pl-links a { font-weight: 600; }
.pl-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 4px 0 0; }
.pl-links a { display: inline-flex; align-items: center; gap: 6px; }

/* Green-tick list (home page .wcb-about-list) */
.pl-ticks { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.pl-ticks li {
    position: relative;
    padding-left: 40px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--pl-list);
}
.pl-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pl-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pl-ticks-muted li::before {
    background: #fff7ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pl strong { color: var(--pl-title); font-weight: 600; }

/* White card */
.pl-card {
    min-width: 0;
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--pl-line);
    box-shadow: var(--pl-shadow);
}
.pl .pl-card-label {
    margin: 0 0 18px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pl-muted);
}
.pl .pl-card-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--pl-title); }
.pl .pl-card-title.pl-mt { margin-top: 28px; font-size: 18px; }
.pl-card-sub { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--pl-muted); }

/* Coloured icon chips (home page "Why" cards) */
.pl-chip {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
}
.pl-chip-round { width: 56px; height: 56px; border-radius: 50%; font-size: 24px; }
.pl .pl-chip i, .pl .pl-chip i::before { font-size: inherit; line-height: 1; margin: 0; }
.pl-tint-blue { background: #eef4ff; color: #2563eb; }
.pl-tint-green { background: var(--pl-green-tint); color: var(--pl-green-dark); }
.pl-tint-violet { background: #f5f3ff; color: #7c3aed; }
.pl-tint-amber { background: #fff7ed; color: #c2410c; }
.pl-tint-pink { background: #fdf2f8; color: #db2777; }

/* At a glance */
.pl-facts { margin: 0; }
.pl-fact { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--pl-line); }
.pl-fact:first-child { padding-top: 0; }
.pl-fact:last-child { padding-bottom: 0; border-bottom: 0; }
.pl-fact .pl-fact-term { font-size: 13px; font-weight: 500; color: var(--pl-muted); }
.pl-fact .pl-fact-desc { margin: 2px 0 0; font-weight: 600; line-height: 1.5; color: var(--pl-title); }

/* Documents */
.pl-seg { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 12px; background: var(--pl-soft); }
.pl-seg button {
    flex: 1;
    padding: 10px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-muted);
    cursor: pointer;
}
.pl-seg button.is-active { background: #fff; color: var(--pl-navy); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.pl .pl-docs h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.pl-docs ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pl-docs li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--pl-list); }
.pl-docs li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-navy); }

/* Lender process */
.pl-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pl-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 34px 28px 30px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pl-line);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pl-steps li:hover { transform: translateY(-3px); border-color: #c7d6ea; box-shadow: 0 14px 32px rgba(15, 39, 71, 0.08); }
.pl .pl-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--pl-navy-tint);
    box-shadow: 0 0 0 8px rgba(15, 39, 71, 0.04);
    color: var(--pl-navy);
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}
.pl-steps li.is-key { border-color: #bbf7d0; background: linear-gradient(180deg, var(--pl-green-tint), #fff 70%); }
.pl .pl-steps li.is-key .pl-step-num { background: var(--pl-green); color: #fff; box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12); }
.pl .pl-steps h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.pl-steps p { margin: 0; font-size: 15px; line-height: 1.65; }
.pl-source { max-width: 820px; margin: 32px auto 0; font-size: 14px; line-height: 1.65; text-align: center; color: var(--pl-muted); }

/* EMI */
.pl-emi label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--pl-title); }
.pl-emi output { color: var(--pl-navy); font-variant-numeric: tabular-nums; }
.pl-emi input[type="range"] { width: 100%; margin: 0 0 22px; accent-color: var(--pl-navy); }
.pl-result {
    padding: 26px 24px 22px;
    border-radius: 16px;
    text-align: center;
    color: #dbe7f5;
    background: linear-gradient(135deg, var(--pl-navy), #1e3a8a);
    background-color: var(--pl-navy); /* solid fallback under the gradient, so contrast checkers read the real background */
    box-shadow: 0 16px 34px -18px rgba(15, 76, 129, 0.65);
}
.pl-result-cap { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #bcd2ee; }
.pl .pl-result-big { display: block; margin: 8px 0 18px; font-family: 'Manrope', sans-serif; font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.pl-result dl { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 12px; row-gap: 4px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; }
.pl .pl-result dt { font-weight: 500; color: #bcd2ee; }
.pl .pl-result dd { margin: 0; font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pl-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--pl-muted); }

/* Unsecured vs secured */
.pl-vs { display: grid; }
.pl-vs-head, .pl-vs-row { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--pl-line); }
.pl-vs-head { padding-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pl-muted); }
.pl-vs-head span:nth-child(2) { color: var(--pl-green-dark); }
.pl-vs-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pl-vs-row span { font-size: 14.5px; line-height: 1.55; color: var(--pl-list); }
.pl-vs-row .pl-vs-label { font-weight: 600; color: var(--pl-title); }
.pl-vs-row span:nth-child(2) { font-weight: 500; color: var(--pl-title); }
.pl-vs-tag { display: none; }

/* Types */
.pl-types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.pl-type {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 34px 28px 30px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pl-line);
    text-align: center;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pl-type:nth-child(4) { grid-column: 2 / span 2; }
.pl-type:hover { transform: translateY(-3px); border-color: #c7d6ea; box-shadow: 0 14px 32px rgba(15, 39, 71, 0.08); }
.pl .pl-type .pl-chip-round { width: 64px; height: 64px; margin-bottom: 8px; font-size: 28px; box-shadow: 0 0 0 8px rgba(15, 39, 71, 0.03); }
.pl .pl-type h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.pl-type p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Charges */
.pl-rows { display: grid; }
.pl-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--pl-line); }
.pl-row:first-child { padding-top: 0; }
.pl-row:last-child { padding-bottom: 0; border-bottom: 0; }
.pl .pl-row h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.pl-row p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.pl-row .pl-row-full { grid-column: 1 / -1; }
.pl-dots { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.pl-dots li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--pl-list); }
.pl-dots li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-green); }

/* Comparison table */
.pl-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--pl-line); background: #fff; box-shadow: var(--pl-shadow); }
.pl-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.pl-table th, .pl-table td { padding: 18px 22px; text-align: left; vertical-align: top; line-height: 1.6; border-bottom: 1px solid var(--pl-line); }
.pl-table tbody tr:last-child th, .pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table thead th, .pl-table thead td { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--pl-title); background: var(--pl-soft); }
.pl-table thead th.is-featured { color: var(--pl-green-dark); background: var(--pl-green-tint); }
.pl-table tbody th { width: 190px; font-weight: 600; color: var(--pl-title); }
.pl-table td.is-featured { background: #fafefb; font-weight: 500; color: var(--pl-title); }
.pl-table-note { margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--pl-muted); }

/* Declined + safety */
.pl-tip { margin: 12px 0 0; padding: 20px 22px; border-radius: 16px; background: var(--pl-green-tint); font-size: 15px; line-height: 1.7; color: var(--pl-list); }
.pl-safe { display: grid; }
.pl-safe-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--pl-line); }
.pl-safe-item:first-child { padding-top: 0; }
.pl-safe-item:last-child { padding-bottom: 0; border-bottom: 0; }
.pl-safe-item p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--pl-list); }

/* FAQs */
.pl-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.pl-faq details { padding: 0 24px; border-radius: 16px; background: #fff; border: 1px solid var(--pl-line); transition: box-shadow .2s; }
.pl-faq details[open] { box-shadow: var(--pl-shadow); }
.pl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl .pl-faq summary h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pl-faq summary i { flex: none; font-size: 22px; color: var(--pl-navy); transition: transform .25s; }
.pl-faq details[open] summary i { transform: rotate(180deg); }
.pl-faq details p { margin: 0; padding-bottom: 22px; font-size: 15.5px; line-height: 1.75; }

/* Related */
.pl-related { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.pl .pl-related a { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--pl-line); color: var(--pl-text); transition: box-shadow .2s, transform .2s; }
.pl-related a:hover { transform: translateY(-3px); box-shadow: var(--pl-shadow); }
.pl .pl-related h3 { margin: 0; font-size: 16px; font-weight: 700; }
.pl-related p { margin: 0; font-size: 14px; line-height: 1.6; }

/* Closing: how to enquire, about, CTA */
.pl-close { padding: 100px 0; background: #fff; }
.pl-enquire { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: pl-enquire; }
.pl-enquire li { counter-increment: pl-enquire; padding: 28px; border-radius: 20px; background: var(--pl-soft); }
.pl-enquire li::before { content: 'Step ' counter(pl-enquire); display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--pl-navy-tint); color: var(--pl-navy); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pl .pl-enquire h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.pl-enquire p { margin: 0; font-size: 15px; line-height: 1.65; }
.pl-about { max-width: 820px; margin: 0 auto 14px; font-size: 15px; line-height: 1.7; text-align: center; color: var(--pl-list); }
.pl-disclaimer { max-width: 820px; margin: 0 auto 32px; font-size: 13px; line-height: 1.6; text-align: center; color: var(--pl-muted); }

@media (max-width: 1199px) {
    .pl-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .pl-sec, .pl-close { padding: 72px 0; }
    .pl .pl-title { font-size: 34px; }
    .pl-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .pl-flip > :first-child { order: 0; }
    .pl-secbar ul { justify-content: flex-start; }
    .pl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-type, .pl-type:nth-child(4) { grid-column: auto; }
    .pl-type:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .pl-sec, .pl-close { padding: 56px 0; }
    .pl .pl-title { font-size: 28px; }
    .pl-lead { font-size: 16px; }
    .pl-center { margin-bottom: 36px; }
    .pl-card { padding: 22px; border-radius: 20px; }
    .pl-steps, .pl-types, .pl-enquire { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pl-type:last-child { grid-column: auto; }
    .pl-steps li, .pl-type, .pl-enquire li { padding: 22px; }
    .pl .pl-step-num { width: 52px; height: 52px; margin-bottom: 16px; font-size: 21px; }
    .pl .pl-result-big { font-size: 36px; }
    .pl .pl-result dd { font-size: 16px; }
    .pl .pl-type .pl-chip-round { width: 56px; height: 56px; font-size: 25px; }
    .pl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .pl-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pl-vs-head { display: none; }
    .pl-vs-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .pl-vs-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--pl-soft); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pl-muted); }
    .pl-faq details { padding: 0 18px; }
    .pl .pl-faq summary h3 { font-size: 16px; }
}
@media (max-width: 420px) {
    .pl-related { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .pl * { transition: none !important; }
}
