/* ========== GLOBAL ========== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Inter', sans-serif;
}

body{
    background:#f5f7fb;
    color:#111;
}

.main-container{
    padding:30px 60px;
    min-height:80vh;
}

/* AUTH PAGES */

.auth-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    height:70vh;
}

.auth-card{
    width:380px;
    background:white;
    padding:35px;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    text-align:center;
}

.auth-card h2{
    margin-bottom:8px;
    color:#212245;
}

.subtitle{
    color:#666;
    font-size:14px;
    margin-bottom:25px;
}

.input-group{
    text-align:left;
    margin-bottom:18px;
}

.input-group label{
    font-size:13px;
    color:#333;
    display:block;
    margin-bottom:6px;
}

.input-group input{
    width:100%;
    padding:11px;
    border:1px solid #ddd;
    border-radius:6px;
    outline:none;
    transition:.2s;
}

.input-group input:focus{
    border-color:#03a9f4;
}

.primary-btn{
    width:100%;
    padding:12px;
    background:#03a9f4;
    border:none;
    border-radius:6px;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.primary-btn:hover{
    background:#0288d1;
}

.resend-link{
    display:block;
    margin-top:18px;
    font-size:13px;
    color:#03a9f4;
    text-decoration:none;
}

.error-box{
    background:#ffe5e5;
    color:#cc0000;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-size:14px;
}

.form-card{
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.form-group{
    margin-bottom: 18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
    color:#212245;
}

.form-group input{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:15px;
}

.form-group input:focus{
    border-color:#03a9f4;
    outline:none;
}

.input-error{
    border:1px solid #e53935 !important;
    background:#fff5f5;
}

.error-text{
    color:#e53935;
    font-size:13px;
    margin-top:5px;
}

.radio-group{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:10px;
}

.radio-group.small{
    flex-direction:row;
    gap:20px;
}

/* RADIO OPTION CARD STYLE */

.radio-option{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-radius:10px;
    border:1px solid #ddd;
    cursor:pointer;
    transition:.25s;
    background:#fafafa;
    font-weight:500;
}

.radio-option:hover{
    border-color:#03a9f4;
    background:#f0faff;
}

.radio-option input{
    accent-color:#03a9f4;
    width:18px;
    height:18px;
}

/* selected state */

.radio-option input:checked + span{
    color:#0288d1;
    font-weight:600;
}

.radio-option:has(input:checked){
    border:2px solid #03a9f4;
    background:#e8f7ff;
}

/* CONDITIONAL FIELDS */

.hidden{
    display:none;
}

#marriageField,
#jointField,
#divorceField,
#widowField{
    animation:fadeIn .25s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ============================= /
/ PERSON DETAILS FORM FIXES /
/ ============================= */

.form-card h2{
margin-bottom: 22px;
color:#212245;
font-weight:600;
text-align: center;
}

/* uniform spacing */
.form-group{
margin-bottom:20px;
}

/* inputs unified look */
.form-group input{
width:100%;
padding:13px 14px;
border-radius:10px;
border:1px solid #cfd3da;
font-size:15px;
transition: .2s ease;
background:#fafbff;
}

/* focus */
.form-group input{
border-color:#03a9f4;
/* background; */
box-shadow:0 0 0 3px rgba(3,169,244,0.12);
}

/* date input fix (browser inconsistency) */
input[type="date"]{
appearance: -webkit-appearance;
min-height:44px;
}

/* error */
.input-error{
border:1px solid #e53935 !important;
background:#fff5f5 !important;
}

.error-text{
color:#e53935;
font-size:13px;
margin-top:6px;
}

/* submit button better */
.primary-btn{
margin-top:10px;
padding:14px;
font-size:15px;
font-weight:600;
border-radius:10px;
background: (135deg,#03a9f4,#0288d1);
box-shadow:0 6px 14px rgba(3,169,244,.25);
}

.primary-btn{
transform: (-1px);
box-shadow:0 10px 18px rgba(3,169,244,.35);
}

/* mobile responsiveness */
@media (max-width:600px){

.main-container{
    padding:20px 18px;
}

.form-card{
    margin:20px auto;
    padding:22px;
    border-radius:12px;
}

.dash-header h1{
    font-size:28px;
}

}

.question{
    margin-bottom:20px;
}

.lsb-card{
    border:1px solid #e2e2e2;
    border-radius:12px;
    margin-bottom:18px;
    background:white;
    overflow:hidden;
}

.lsb-header{
    background:#f5f7fb;
    padding:12px 15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.lsb-header .summary{
    font-size:13px;
    color:#666;
    margin-left:10px;
}

.actions button{
    margin-left:8px;
    padding:4px 10px;
    cursor:pointer;
}

.lsb-body{
    padding:15px;
}

.grid{
    /* display:grid; */
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap:15px;
    margin-bottom:10px;
}

.btn-add{
    margin-top:10px;
}