/* ProtectMeWell™ - Compact Mobile-Focused Styling (Lovable AI Style) */
:root {
    --blue-color: #29149C;
    --green-color: #00B04E;
    --red-color: #E40000;
    --white-color: #fffaf8;
    --black-color: #000000;
    --gray-color: #808080;

    --primary-color: var(--green-color);
    --secondary-color: var(--blue-color);
    --bg-color: var(--white-color);
    --text-main: var(--black-color);
    --text-muted: var(--gray-color);
    --radius-lg: 20px;  
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Base Scaling - Reduced for Mobile Focus */
html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--white-color);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: var(--black-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar{
    width: 0;
}
.container {
    max-width: 95%;
}

/* Utility Classes */
.text-primary {
    color: var(--blue-color) !important;
}

.btn-primary {
    background: var(--green-color) !important;
    border: 0;
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 176, 78, 0.2);
}

/* Main UI Card */
.main-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin: 0rem auto;
    width: 100%;
    max-width: 500px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.logo-shield {
    width: 32px;
    margin-bottom: 0.75rem !important;
}

#progress-text {
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-color);
    margin-bottom: 1.25rem !important;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.question-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.question-subtitle {
    color: var(--gray-color);
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

/* Custom Controls */
.premium-input {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid #f0f0f5;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #fbfbfc;
    outline: none;
    transition: all 0.2s;
}

.premium-input:focus {
    background: #ffffff;
    border-color: var(--green-color);
    box-shadow: 0 0 0 4px rgba(0, 176, 78, 0.05);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.option-card {
    background: #ffffff;
    border: 1.5px solid #f0f0f5;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--black-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-card:hover {
    border-color: var(--green-color);
}

.option-card.selected {
    border-color: var(--green-color);
    background: #f0fdf4;
    color: var(--green-color);
    transform: scale(0.98);
}

.option-card .city-icon {
    height: 32px;
    width: auto;
    margin-bottom: 0.6rem;
    display: block;
    object-fit: contain;
}

/* List Options */
.premium-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.list-option {
    padding: 1rem;
    font-size: 0.9rem;
    background: #ffffff;
    border: 1.5px solid #f0f0f5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.list-option.selected {
    border-color: var(--green-color);
    background: #f0fdf4;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    position: relative;
}

.list-option.selected .radio-circle {
    border-color: var(--green-color);
    background: var(--green-color);
}

.list-option.selected .radio-circle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- LOVABLE SLIDER UI --- */
.premium-slider-container {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-header span:first-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black-color);
}

.slider-value {
    padding: 4px 12px;
    background: var(--blue-color);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(41, 20, 156, 0.15);
}

input[type=range].premium-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range].premium-slider:focus {
    outline: none;
}

/* Track */
input[type=range].premium-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #f0f0f5;
    border-radius: 10px;
    border: none;
}

/* Thumb */
input[type=range].premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--green-color);
    margin-top: -8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type=range].premium-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
    background: var(--green-color);
    border-color: #fff;
}

/* Mozilla Support */
input[type=range].premium-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #f0f0f5;
    border-radius: 10px;
}

input[type=range].premium-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--green-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Progress Stepper */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step-dot {
    width: 28px;
    height: 28px;
    background: #f0f0f5;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 28px;
}

.step-dot.active {
    background: var(--blue-color);
    width: 28px;
    border-radius: 30px;
    color: #fff;
}

.step-dot.completed {
    background: var(--green-color);
}

/* Navigation */
.nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;

}

.btn-back {
    background: transparent;
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
}

.btn-next {
    background: var(--green-color) !important;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 176, 78, 0.15);
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.result-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--green-color);
}

.amount-display {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-color);
    margin: 0.75rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 2px 0;
    border-bottom: 1px dotted #eeeeee;
}

.detail-row:last-child {
    border-bottom: none;
}

/* Modals */
.premium-modal {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1.5rem !important;
}

.modal-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--blue-color);
}

.spinner-border {
    border-width: 0.25em;
    color: var(--green-color) !important;
}

.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Results: hero and recommended cards matching the design */
.results-hero {
    background: #F0F8FF;
    border: 1px solid rgba(16,185,129,0.06);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ADD8E6
}
.results-hero .hero-row { display:flex; gap:1.25rem; align-items:flex-start; }
.results-hero .hero-left { flex:1 1 60%; }
.results-hero .hero-right { flex:0 0 36%; text-align:right; }
.results-hero .hero-label { color: var(--black-color); font-size: 0.75rem; }
.results-hero .hero-amount { font-size: 1.1rem; font-weight: 900; color: var(--blue-color); }
.results-hero .hero-sub { font-weight:700; color: var(--blue-color); font-size:1rem; margin-top:6px; }
.results-hero ul { margin:0.5rem 0 0 0; padding-left:1.05rem; color: #3e3e3e; font-size:0.92rem; }

.recommended-row { display:grid; grid-template-columns: repeat(2,1fr); gap:1rem; margin-top:1rem; }
@media (max-width:425px) {
    .results-hero .hero-row{
        flex-direction:column;
        gap: 8px;
        text-align:start;
    }
    .results-hero .hero-right {
        text-align:left;
    }
    .recommended-row { grid-template-columns: 1fr; }
}
.small-card {
    background:#ffffff;
    border-radius:10px;
    padding:1rem;
    position:relative;
    border:1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 18px rgba(16,24,40,0.03);
    overflow:hidden;
}
.small-card .card-left { display:flex; align-items:center; gap:0.75rem; }
.small-card .card-header { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.small-card .card-title { font-weight:700; color:#0f172a; font-size:0.8rem; }
.small-card .card-amount { color: var(--blue-color); font-weight:800; margin-top:0.25rem; font-size:0.8rem; }
.small-card .card-content { transition: all 0.2s ease; }
.small-card .card-details { margin-top:0.6rem; }

/* locked state: only details blurred and dimmed, header stays visible */
.small-card.locked .card-details { filter: blur(3px) saturate(0.6); opacity:0.6; }
.lock-overlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:rgba(255,255,255,0.7); border-radius:999px; width:48px; height:48px; display:flex; align-items:center; justify-content:center; color:#6d28d9; box-shadow:0 6px 18px rgba(109,40,217,0.08); }

/* active card highlight */
.small-card.active { border-color: rgba(79,70,229,0.12); background: linear-gradient(90deg,#eef2ff,#ffffff); }





/* Temporary dev cheat button - remove when finished */
.dev-cheat-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.2rem;
}