

label{
    font-weight:600;
    margin-bottom:6px;
    display:block;
}

input, select{
    padding:10px;
    border:1px solid var(--border);
    border-radius:6px;
    font-size:14px;
}

input[type="number"]{appearance:textfield;}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{ -webkit-appearance:none; }

input:focus, select:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(79,70,229,.15);
}

.calculator{
    max-width:600px;
    margin:20px auto;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:24px;
}

.calculator h2{
    text-align:center;
    color:var(--primary);
}

.rowc{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.rowc label{ width:160px; }

.height-box{
    display:flex;
    gap:8px;
}

.calendar{
    width:32px;
    height:32px;
    border:1px solid var(--border);
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
.calendar::before{ content:"📅"; }

.hidden-date{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.calculate-btn{
    background:var(--primary);
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    margin:10px auto 0;
    display:block;
}
.calculate-btn:hover{ background:#4338ca; }

/* RESULT */
.containerc{
    max-width:600px;
    margin:20px auto;
}

.result{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:22px;
    text-align:center;
}

.result-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:12px;
}

.age-result{
    display:flex;
    gap:16px;
    justify-content:center;
}

.age-card{
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px 22px;
    min-width:120px;
}

.age-card h3{
    font-size:32px;
    color:var(--primary);
    margin:0;
}

.age-card span{
    font-size:14px;
    opacity:.85;
}

.hidden{ display:none; }

@media(max-width:600px){
    .rowc label{ width:100%; }
    .height-box{ width:100%; }
    .height-box select,
    .height-box input{ flex:1; }
}
