/* RESET */
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

/* BODY */
body{
    font-family:"Noto Sans Devanagari","Segoe UI",sans-serif;
    background:linear-gradient(135deg,#f2f6ff,#e6f7f1);
    color:#333;

    min-height:100vh;

    display:flex;
    flex-direction:column;
}

/* ================= HEADER ================= */

header{
    background:linear-gradient(90deg,#2563eb,#0f766e);
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
    position:sticky;     /* BETTER THAN FIXED */
    top:0;
    z-index:1000;
}

.header-inner{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 20px;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:white;
}

nav{
    display:flex;
    gap:22px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
}

nav a:hover{
    text-decoration:underline;
}


/* MOBILE MENU */

.menu-btn{
    display:none;
    font-size:26px;
    color:white;
    cursor:pointer;
}


/* ================= FOOTER ================= */

footer{
    background:#1e3a8a;
    color:white;
    text-align:center;
    padding:15px 10px;

    margin-top:auto;   /* MAGIC LINE */
}



/* ================= MAIN ================= */

/*.main{*/
/*    padding:40px 15px;*/
/*}*/


/* ================= CONTAINER ================= */

.container{
    max-width:600px;
    width:100%;
    margin:30px auto;
    background:white;
    padding:25px 20px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}


/* ================= HEADINGS ================= */

h1{
    text-align:center;
    color:#1e3a8a;
    margin-bottom:5px;
}

h2{
    text-align:center;
    color:#0f766e;
    font-size:18px;
    margin-bottom:25px;
}


/* ================= FORM ================= */

label{
    font-weight:600;
    font-size:14px;
}

input{
    width:100%;
    padding:12px;
    margin-top:5px;
    margin-bottom:15px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#f9fafb;
}

input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}


/* ================= BUTTON ================= */

.submit-btn{
    background:linear-gradient(135deg,#2563eb,#0f766e);
    color:white;
    border:none;
    padding:12px 35px;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
}

.submit-btn:hover{
    transform:translateY(-2px);
}


/* ================= LINKS ================= */

.links{
    text-align:center;
    margin-top:15px;
}

.links a{
    color:#2563eb;
    text-decoration:none;
}


/* ================= HOME ================= */

.hero{
    text-align:center;
    padding:60px 20px;
}

.hero h1{
    font-size:32px;
}

.features{
    max-width:1000px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding:20px;
}

.card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 6px 15px rgba(0,0,0,0.08);
    text-align:center;
}




/* ================= MOBILE ================= */

@media(max-width:768px){

    nav{
        position:absolute;
        top:60px;
        right:0;
        background:linear-gradient(180deg,#2563eb,#0f766e);
        width:200px;
        flex-direction:column;
        padding:15px;
        display:none;
    }

    nav.active{
        display:flex;
    }

    .menu-btn{
        display:block;
    }

    .hero h1{
        font-size:24px;
    }

    .container{
        margin:20px auto;
        padding:20px 15px;
    }

    .submit-btn{
        width:100%;
    }
}
/* ================= REGISTRATION FORM FIX ================= */

/* Rows & Columns (keep existing layout) */
.row{
    display:flex;
    flex-wrap:wrap;
    margin:10px -10px;
}

.col{
    flex:1 1 300px;
    padding:10px;
    min-width:250px;
}


/* Textarea */
textarea{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#f9fafb;
    min-height:80px;
    resize:vertical;
}


/* Select */
select{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#f9fafb;
}


/* Radio + Checkbox Layout */
.radio-group{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:6px;
}

.radio-group label{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:500;
}


/* ================= VALIDATION UI ================= */

/* Error State */
.input-error{
    border-color:#dc2626 !important;
    background:#fef2f2;
}

/* Success State */
.input-success{
    border-color:#16a34a !important;
    background:#f0fdf4;
}

/* Error Text */
.error-text{
    color:#dc2626;
    font-size:12px;
    margin-top:-10px;
    margin-bottom:10px;
    display:none;
}


/* ================= IMAGE PREVIEW ================= */

.photo-preview{
    width:120px;
    height:120px;
    border-radius:50%;
    border:2px solid #2563eb;
    object-fit:cover;
    display:none;
    margin-bottom:10px;
    background:#f1f5f9;
}


/* ================= MOBILE FORM ================= */

@media(max-width:768px){

    .row{
        flex-direction:column;
    }

    .col{
        width:100%;
    }
}

/* ================= FINAL FORM UI FIX ================= */

/* Make form wider */
main.main{
    max-width:1300px;
}

/* Increase form width */
main.main form{
    max-width:1000px;
    margin:0 auto;
}

/* Improve section spacing */
main.main form h2{
    margin-top:50px;
}

/* Improve grid spacing */
.form-grid{
    gap:25px;
}

/* Better field alignment */
.form-grid > div{
    padding:5px 0;
}

/* Inputs better look */
input,
select,
textarea{
    font-size:15px;
}

/* Checkbox alignment fix */
.form-grid.full label{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.form-grid.full input[type="checkbox"]{
    width:auto;
    margin:0;
}

/* Mobile improvement */
@media(max-width:768px){

    main.main form{
        max-width:100%;
    }

    .form-grid{
        gap:18px;
    }

}

.main-photo{
    width:100%;
    max-width:350px;
    border-radius:12px;
    display:block;
    margin:0 auto 20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.photo-gallery{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:10px 0;
}

.gallery-photo{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.gallery-photo:hover{
    transform:scale(1.05);
}