/* /var/www/coin.dmcsoftware.ro/frontend/css/style.css */

:root{
    --primary:#0057b8;
    --primary-light:#4a8eff;
    --accent:#ffb800;
    --bg:#f4f7fb;
    --card:#ffffff;
    --text:#111;
    --border:#e0e6ed;
    --radius:16px;
    --shadow:0 4px 18px rgba(0,0,0,.08);
    --font:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html,body{
    height:100%;
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
    display:flex;
    justify-content:center;
    align-items:center;
}

#app{
    width:100%;
    max-width:900px;
    padding:24px;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar{
    display:flex;
    justify-content:space-between;
    margin-bottom:40px;
    counter-reset:step;
}

.progress-bar .step{
    flex:1;
    text-align:center;
    position:relative;
    font-weight:600;
    font-size:14px;
    color:#999;
}

.progress-bar .step::before{
    counter-increment:step;
    content:counter(step);
    display:block;
    width:36px;
    height:36px;
    margin:0 auto 8px;
    line-height:36px;
    background:#ddd;
    border-radius:50%;
    transition:.3s;
}

.progress-bar .step.active{
    color:var(--primary);
}

.progress-bar .step.active::before{
    background:var(--primary);
    color:#fff;
}

.progress-bar .step:not(:last-child)::after{
    content:"";
    height:3px;
    background:#ddd;
    position:absolute;
    left:50%;
    top:18px;
    width:100%;
    z-index:-1;
}

.progress-bar .step.active:not(:last-child)::after{
    background:var(--primary);
}

/* ---------- STEP CONTENT ---------- */
.step-content{
    display:none;
    animation:fadeIn .4s ease-in-out;
}

.step-content.active{
    display:block;
}

@keyframes fadeIn{
    from{opacity:0;transform:translateY(10px);}
    to{opacity:1;transform:translateY(0);}
}

/* ---------- CARDS ---------- */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.card{
    background:var(--card);
    border-radius:var(--radius);
    padding:24px 16px;
    text-align:center;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:.25s;
    border:2px solid transparent;
}

.card:hover{
    transform:translateY(-4px);
    border-color:var(--primary-light);
}

.card h2{
    font-size:18px;
    margin-bottom:8px;
    color:var(--primary);
}

.card p{
    font-size:14px;
    color:#666;
}

/* ---------- BUTTONS ---------- */
button{
    background:var(--primary);
    color:#fff;
    border:none;
    padding:12px 28px;
    font-size:16px;
    border-radius:var(--radius);
    cursor:pointer;
    transition:.25s;
    margin:8px 4px;
}

button:hover{
    background:var(--primary-light);
}

button:active{
    transform:scale(.97);
}

/* ---------- INPUTS ---------- */
input[type="text"],
input[type="tel"]{
    padding:12px 16px;
    font-size:16px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    width:100%;
    max-width:300px;
    margin-top:8px;
}

label{
    font-weight:600;
    font-size:15px;
}

/* ---------- MISC ---------- */
h1{
    margin-bottom:24px;
    font-size:28px;
    text-align:center;
}

#step2Sum{
    font-size:22px;
    margin:20px 0;
    text-align:center;
    color:var(--accent);
}

#step4Error{
    margin-top:12px;
    font-weight:600;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:600px){
    .progress-bar .step{
        font-size:12px;
    }
    .card h2{
        font-size:16px;
    }
    button{
        width:100%;
    }
}