@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
    --fc-primary:#6d1b59;
    --fc-primary-rgb:109,27,89;
    --fc-primary-light: rgba(109,27,89,0.6);
    --fc-accent:#fdae01;
    --fc-accent-rgb:253,174,1;
    --fc-accent-light:#ffe9b8;
    --fc-accent-text:#fdae01;
    --fc-accent-text-grad:linear-gradient(135deg,#fdb821 0%,#fa9f0a 50%,#f59100 100%);
    --fc-gray-track:#e8e2e6;
    --fc-text:#2b2530;
    --fc-muted:#7a7480;
}

*{box-sizing:border-box;}

body{
    margin:0;
    font-family:'Poppins', sans-serif;
    color:var(--fc-text);
    background:linear-gradient(135deg,#c690b2 0%,#d1aac6 25%,#e2c2d6 45%,#e9cfd6 60%,#cdaac4 80%,#dbb8cf 100%);
    min-height:100vh;
}

.fc-page{
    max-width:760px;
    margin:24px auto;
    padding:0 16px 60px;
}

/* ---------- Card ---------- */
.fc-card{
    background:linear-gradient(135deg,#f8f0f5 0%,#f1d9e6 30%,#ecd0e1 50%,#e3bdd9 70%,#f3e4ee 100%);
    border-radius:28px;
    padding:28px;
    box-shadow:0 20px 50px rgba(var(--fc-primary-rgb),0.15);
    position:relative;
    overflow:hidden;
}

/* ---------- Step indicator ---------- */
.fc-steps{
    display:flex;
    align-items:center;
    margin-bottom:28px;
}
.fc-step-circle{
    width:36px;height:36px;border-radius:50%;
    background:var(--fc-primary);
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-weight:600;
    flex:none;
    box-shadow:0 6px 14px rgba(109,27,89,0.35);
}
.fc-step-circle.fc-pending{
    background:#fff;
    color:var(--fc-primary);
    border:2px solid var(--fc-primary);
}
.fc-step-circle.fc-future{
    background:#e3dde0;
    color:#aaa3a8;
    border:none;
    box-shadow:none;
}
.fc-step-line{
    flex:1;
    height:3px;
    background:var(--fc-primary);
    margin:0 6px;
}
.fc-step-line.fc-future{ background:#dcd6da; }

/* ---------- Header ---------- */
.fc-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}
.fc-header img.fc-logo{ height:54px; }
.fc-plan-title{
    font-size:22px;
    font-weight:700;
    margin:0;
}
.fc-badge{
    display:inline-block;
    background:var(--fc-primary);
    color:#fff;
    font-size:12px;
    font-weight:600;
    padding:6px 14px;
    border-radius:20px;
    margin-top:6px;
}

/* ---------- Info panel ---------- */
.fc-panel{
    background:rgba(255,255,255,0.55);
    border-radius:20px;
    padding:18px 22px;
    margin-bottom:18px;
}
.fc-info-row{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    font-size:15px;
}
.fc-info-row .label{ color:var(--fc-text); }
.fc-info-row .value{ font-weight:700; }

/* ---------- Stat grid ---------- */
.fc-stats{
    display:flex;
    justify-content:space-around;
    text-align:center;
    flex-wrap:wrap;
    gap:18px 14px;
}
.fc-stat{ flex:1 1 28%; min-width:110px; }
.fc-stat .fc-stat-icon{
    width:46px;height:46px;
    margin:0 auto 6px;
    color:var(--fc-primary);
}
.fc-stat .fc-stat-label{
    font-size:12px;
    font-weight:600;
    letter-spacing:.03em;
    color:var(--fc-muted);
    text-transform:uppercase;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
}
.fc-stat .fc-stat-value{
    font-size:25px;
    font-weight:800;
    letter-spacing:0.2px;
    color:#1a1a1a;
    -webkit-text-fill-color:#1a1a1a;
    background:none;
    -webkit-background-clip:unset;
    background-clip:unset;
    -webkit-text-stroke:unset;
}

/* ---------- Info button + prompt (used for Tax) ---------- */
.fc-info-btn{
    width:16px;height:16px;
    border-radius:50%;
    border:1px solid var(--fc-primary);
    background:transparent;
    color:var(--fc-primary);
    font-size:10px;
    font-style:italic;
    font-weight:700;
    line-height:1;
    padding:0;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.fc-info-btn:hover{ background:var(--fc-primary); color:#fff; }

.fc-prompt-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(43,37,48,0.45);
    align-items:center;
    justify-content:center;
    z-index:50;
    padding:20px;
}
.fc-prompt-overlay.fc-prompt-open{ display:flex; }
.fc-prompt-box{
    background:#fff;
    border-radius:20px;
    padding:26px;
    max-width:360px;
    width:100%;
    text-align:center;
    box-shadow:0 20px 50px rgba(var(--fc-primary-rgb),0.3);
}
.fc-prompt-title{
    font-size:17px;
    font-weight:700;
    margin-bottom:10px;
    color:var(--fc-primary);
}
.fc-prompt-text{
    font-size:13.5px;
    color:var(--fc-muted);
    line-height:1.6;
    margin-bottom:18px;
}

/* ---------- Slider blocks ---------- */
.fc-slider-block{
    background:rgba(255,255,255,0.55);
    border-radius:20px;
    padding:18px 22px;
    margin-bottom:18px;
}
.fc-slider-block label{
    font-size:18px;
    font-weight:600;
    display:block;
    margin-bottom:14px;
}
.fc-slider-row{
    display:flex;
    align-items:center;
    gap:18px;
}
.fc-slider-row input[type=range]{
    flex:1;
}
.fc-slider-value{
    width:120px;
    flex:none;
}

/* ---------- Action row ---------- */
.fc-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:24px;
    flex-wrap:wrap;
    gap:14px;
}
.fc-link-feature{
    color:var(--fc-primary);
    font-weight:600;
    text-decoration:none;
}

/* =====================================================
   Fill Button CSS (from css.txt)
===================================================== */
.fc-btn-fill{
    background:#8e3683 !important;
    color:#ffffff !important;
    border:none !important;
    padding:14px 45px !important;
    border-radius:30px !important;
    font-weight:600;
    font-size:16px !important;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(142,54,131,0.25);
    transition:transform 0.2s, box-shadow 0.2s;
    font-family:'Poppins', sans-serif;
}
.fc-btn-fill:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(109,27,89,0.35); }

/* Brand theme override (pic11/pic22) applied on top of the verbatim css.txt rule above */
.fc-btn-fill{
    background:var(--fc-primary) !important;
    box-shadow:0 8px 20px rgba(var(--fc-primary-rgb),0.25);
}

/* =====================================================
   Reset Button CSS (from css.txt)
===================================================== */
.fc-btn-reset{
    background:transparent !important;
    border:1px solid #bbb !important;
    padding:12px 30px !important;
    border-radius:30px !important;
    cursor:pointer !important;
    color:#666 !important;
    font-weight:500;
    font-family:'Poppins', sans-serif;
    font-size:14px !important;
    transition:0.2s !important;
}
.fc-btn-reset:hover{ background:#f3f0f2 !important; }

/* =====================================================
   Input Field CSS (from css.txt)
===================================================== */
.fc-input{
    width:100% !important;
    padding:16px !important;
    border:1px solid #ddd !important;
    border-radius:100px !important;
    font-size:16px;
    outline:none;
    box-sizing:border-box;
    transition:0.3s;
    background:rgba(255,255,255,0.8);
    font-family:'Poppins', sans-serif;
}
.fc-input:focus{ border-color:var(--fc-primary) !important; }

/* =====================================================
   Range Bar CSS (from css.txt)
===================================================== */
input[type=range].fc-range{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    height:21px;
    border-radius:10px;
    border:1px solid rgba(128,128,128,0.23);
    background:transparent;
    cursor:pointer;
    z-index:2;
    background-image:linear-gradient(to right, rgba(140,57,131,0.6) var(--fc-range-progress,20%), var(--fc-gray-track) var(--fc-range-progress,20%));
}
input[type=range].fc-range::-webkit-slider-thumb{
    -webkit-appearance:none;
    width:26px;height:26px;
    border-radius:50%;
    background:var(--fc-primary);
    box-shadow:0 4px 10px rgba(109,27,89,0.4);
    cursor:pointer;
    margin-top:0;
}
input[type=range].fc-range::-moz-range-thumb{
    width:26px;height:26px;
    border-radius:50%;
    background:var(--fc-primary);
    border:none;
    box-shadow:0 4px 10px rgba(109,27,89,0.4);
    cursor:pointer;
}

/* ---------- Illustration screen ---------- */
.fc-illus-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:9px 0;
    border-bottom:1px solid rgba(109,27,89,0.08);
    font-size:14px;
    flex-wrap:wrap;
    gap:4px;
}
.fc-illus-row:last-child{ border-bottom:none; }
.fc-illus-label{ color:var(--fc-muted); }
.fc-illus-value{ font-weight:700; color:var(--fc-text); }
.fc-illus-highlight .fc-illus-value{ color:var(--fc-primary); font-size:16px; }

.fc-btn-view-illus{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 32px;
    border-radius:30px;
    border:2px solid var(--fc-primary);
    background:transparent;
    color:var(--fc-primary);
    font-family:'Poppins', sans-serif;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.2s;
}
.fc-btn-view-illus:hover{ background:var(--fc-primary); color:#fff; }

.fc-illus-hint{
    color:#2e7d32;
    font-size:13px;
    font-weight:600;
    margin-top:10px;
}

.fc-illus-modal{
    background:#fff;
    border-radius:22px;
    padding:28px 24px;
    max-width:520px;
    width:100%;
    max-height:80vh;
    overflow-y:auto;
    box-shadow:0 20px 50px rgba(109,27,89,0.25);
}

.fc-illus-doc{ overflow-x:auto; }
.fc-illus-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}
.fc-illus-table th{
    background:var(--fc-primary);
    color:#fff;
    padding:9px 12px;
    text-align:left;
    font-weight:600;
}
.fc-illus-table td{
    padding:8px 12px;
    border-bottom:1px solid #f0eaf2;
    color:var(--fc-text);
}
.fc-illus-table tr:nth-child(even) td{ background:#faf5f9; }

.fc-section-title{
    font-size:18px;
    font-weight:700;
    margin:22px 0 10px;
}
.fc-field{ margin-bottom:16px; }
.fc-field label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:var(--fc-muted);
    margin-bottom:6px;
}

/* Auto-populated / beneficiary field panels become 2-column grid on tablets+ */
.fc-panel:has(.fc-field), .fc-beneficiary-card{
    display:grid;
    grid-template-columns:1fr;
    gap:0 18px;
}
@media (min-width:560px){
    .fc-panel:has(.fc-field), .fc-beneficiary-card{
        grid-template-columns:1fr 1fr;
    }
}
.fc-upload-box{
    border:2px dashed #d8b9cf;
    border-radius:18px;
    padding:26px;
    text-align:center;
    background:rgba(255,255,255,0.5);
    cursor:pointer;
}
.fc-upload-box small{ color:var(--fc-muted); display:block; margin-top:6px; }

.fc-beneficiary-card{
    background:rgba(255,255,255,0.55);
    border-radius:18px;
    padding:18px;
    margin-bottom:14px;
    position:relative;
}
.fc-remove-beneficiary{
    position:absolute;
    top:14px;right:14px;
    color:#c0392b;
    cursor:pointer;
    font-weight:700;
    border:none;background:none;
}

.fc-policy-method{
    display:flex;
    align-items:center;
    gap:16px;
    background:rgba(255,255,255,0.55);
    border-radius:18px;
    padding:16px 20px;
    margin-bottom:14px;
    cursor:pointer;
    border:2px solid transparent;
}
.fc-policy-method.fc-selected{ border-color:var(--fc-primary); }
.fc-policy-method img{ height:34px; }

.fc-success-wrap{
    text-align:center;
    padding:50px 20px;
}
.fc-success-icon{
    width:90px;height:90px;
    margin:0 auto 18px;
    border-radius:50%;
    background:var(--fc-primary);
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:46px;
}
.fc-policy-id{
    display:inline-block;
    margin-top:14px;
    padding:8px 18px;
    border-radius:20px;
    background:rgba(109,27,89,0.1);
    color:var(--fc-primary);
    font-weight:700;
}

.fc-checkbox-row{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-bottom:14px;
    font-size:14px;
    line-height:1.5;
}
.fc-checkbox-row input{ margin-top:4px; }

/* ===================================================
   Responsive breakpoints
=================================================== */
@media (max-width:768px){
    .fc-page{ padding:0 12px 40px; margin:16px auto; }
    .fc-card{ padding:22px; border-radius:22px; }
    .fc-plan-title{ font-size:19px; }
    .fc-stats{ justify-content:space-between; gap:10px; }
    .fc-stat{ flex:1 1 30%; min-width:90px; }
    .fc-stat .fc-stat-value{ font-size:19px; }
    .fc-panel, .fc-slider-block{ padding:14px 16px; }
}

@media (max-width:600px){
    .fc-card{ padding:18px; border-radius:20px; }
    .fc-header{ flex-wrap:wrap; }
    .fc-header img.fc-logo, .fc-header svg.fc-logo{ height:44px; width:44px; }
    .fc-plan-title{ font-size:17px; }
    .fc-badge{ font-size:11px; padding:5px 12px; }
    .fc-stats{ justify-content:center; }
    .fc-stat{ flex:1 1 100%; }
    .fc-info-row{ font-size:14px; flex-wrap:wrap; gap:2px; }
    .fc-slider-row{ flex-direction:column; align-items:stretch; }
    .fc-slider-value{ width:100%; }
    .fc-actions{ flex-direction:column; align-items:stretch; }
    .fc-actions .fc-btn-fill, .fc-actions .fc-btn-reset{ width:100%; text-align:center; }
    .fc-link-feature{ text-align:center; }
    .fc-policy-method{ flex-direction:row; padding:14px; }
    .fc-success-icon{ width:70px; height:70px; font-size:34px; }
}

@media (max-width:400px){
    .fc-plan-title{ font-size:16px; }
    .fc-stat .fc-stat-value{ font-size:17px; }
    .fc-input{ padding:13px !important; font-size:14px; }
    .fc-btn-fill, .fc-btn-reset{ padding:12px 24px !important; font-size:14px !important; }
}
