@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root{
    --maroon:#7a1f2b;
    --maroon-dark:#5a1620;
    --gold:#c9a227;
    --bg:#f4f1ea;
    --card-bg:#ffffff;
    --border:#d8cfc0;
    --text:#2b2320;
    --muted:#6b625a;
}

*{ box-sizing:border-box; }

body{
    font-family:'Noto Sans Bengali','Noto Sans',sans-serif;
    background:var(--bg);
    color:var(--text);
    margin:0;
    padding:0 0 40px 0;
}

.form-wrapper{
    max-width:960px;
    margin:24px auto;
    background:var(--card-bg);
    border:1px solid var(--border);
    border-radius:10px;
    box-shadow:0 6px 24px rgba(0,0,0,0.08);
    overflow:hidden;
}

/* ---------- Header ---------- */
.college-header{
    background:linear-gradient(135deg,var(--maroon) 0%,var(--maroon-dark) 100%);
    color:#fff;
    padding:22px 28px;
    display:flex;
    align-items:center;
    gap:18px;
}
.college-header .logo-circle{
    width:64px; height:64px; border-radius:50%;
    background:#fff; display:flex; align-items:center; justify-content:center;
    font-weight:700; color:var(--maroon); font-size:12px; text-align:center; flex-shrink:0;
    border:3px solid var(--gold);
}
.college-header .titles{ flex:1; }
.college-header h1{ margin:0; font-size:26px; font-weight:700; letter-spacing:.5px; }
.college-header p{ margin:2px 0 0; font-size:13px; opacity:.9; }
.college-header .code-line{ font-size:13px; margin-top:4px; opacity:.95;}

.form-title-bar{
    background:var(--gold);
    color:var(--maroon-dark);
    text-align:center;
    padding:10px;
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
}
.dept-badge{
    text-align:center;
    padding:8px;
    background:var(--maroon-dark);
    color:#fff;
    font-weight:600;
    font-size:15px;
}

/* ---------- Section ---------- */
.section{
    padding:20px 28px;
    border-bottom:1px dashed var(--border);
}
.section:last-child{ border-bottom:none; }
.section-title{
    font-size:16px;
    font-weight:700;
    color:var(--maroon);
    margin:0 0 14px;
    padding-bottom:6px;
    border-bottom:2px solid var(--gold);
    display:inline-block;
}

.field-row{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:14px;
}
.field{
    flex:1 1 260px;
    display:flex;
    flex-direction:column;
}
.field.full{ flex:1 1 100%; }
.field label{
    font-size:13px;
    font-weight:600;
    color:var(--muted);
    margin-bottom:4px;
}
.field label .req{ color:var(--maroon); margin-left:2px; }

input[type=text], input[type=number], input[type=date], input[type=tel],
select, textarea{
    font-family:inherit;
    font-size:14px;
    padding:9px 11px;
    border:1px solid var(--border);
    border-radius:6px;
    background:#fffefb;
    color:var(--text);
    outline:none;
    transition:border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus{
    border-color:var(--maroon);
    box-shadow:0 0 0 3px rgba(122,31,43,0.12);
}

.radio-group, .checkbox-group{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    padding-top:4px;
}
.radio-group label, .checkbox-group label{
    font-weight:500;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:5px;
    color:var(--text);
}

table.grid-table{
    width:100%;
    border-collapse:collapse;
    margin-top:6px;
}
table.grid-table th, table.grid-table td{
    border:1px solid var(--border);
    padding:8px;
    font-size:13px;
}
table.grid-table th{
    background:#f1e9da;
    color:var(--maroon-dark);
    font-weight:700;
}
table.grid-table input, table.grid-table select{
    width:100%;
    padding:6px 8px;
    font-size:13px;
}

.subject-box{
    background:#faf7f0;
    border:1px solid var(--border);
    border-radius:8px;
    padding:14px 16px;
    margin-bottom:12px;
    font-size:14px;
    line-height:1.7;
}
.subject-box b{ color:var(--maroon); }

.declaration-box{
    background:#fff8e6;
    border:1px solid var(--gold);
    border-radius:8px;
    padding:16px;
    font-size:14px;
    line-height:1.9;
    margin-bottom:14px;
}

.actions-bar{
    padding:22px 28px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    background:#faf8f4;
}
.btn{
    padding:11px 26px;
    border-radius:6px;
    font-size:15px;
    font-weight:700;
    border:none;
    cursor:pointer;
    transition:transform .1s, box-shadow .15s;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 4px 10px rgba(0,0,0,0.15); }
.btn-primary{ background:var(--maroon); color:#fff; }
.btn-primary:hover{ background:var(--maroon-dark); }
.btn-secondary{ background:#e9e3d6; color:var(--text); }

.validation-summary{
    margin:16px 28px 0;
    padding:12px 16px;
    background:#fdecea;
    border:1px solid #f1a9a0;
    color:#8a1f11;
    border-radius:6px;
    font-size:14px;
}
.success-banner{
    margin:16px 28px 0;
    padding:12px 16px;
    background:#e7f6ec;
    border:1px solid #a3d9b1;
    color:#1e5631;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
}

.photo-box{
    width:110px; height:140px;
    border:2px dashed var(--maroon);
    border-radius:6px;
    display:flex; align-items:center; justify-content:center;
    font-size:11px; text-align:center; color:var(--muted);
    padding:6px;
    margin-left:auto;
}

/* ---------- Report / printable form ---------- */
.report-page{
    max-width:850px;
    margin:20px auto;
    background:#fff;
    padding:30px 40px;
    border:1px solid #ccc;
}
.report-page .r-header{ text-align:center; margin-bottom:6px; }
.report-page .r-header h1{ margin:4px 0; font-size:24px; color:var(--maroon); }
.report-page .r-header p{ margin:2px 0; font-size:13px; }
.report-page hr{ border:none; border-top:2px solid var(--maroon); margin:10px 0 16px; }
.report-page .r-title{ text-align:center; font-size:19px; font-weight:700; margin:10px 0 4px; }
.report-page .r-dept{ text-align:center; font-weight:700; background:#eee; padding:6px; margin-bottom:16px; }
.report-page .r-row{ display:flex; gap:20px; margin-bottom:8px; font-size:13.5px; }
.report-page .r-field{ flex:1; border-bottom:1px dotted #999; padding-bottom:3px; }
.report-page .r-field b{ color:var(--maroon-dark); margin-right:4px; }
.report-page .r-section-title{
    font-weight:700; color:#fff; background:var(--maroon);
    padding:5px 10px; margin:18px 0 10px; font-size:14px; border-radius:4px;
}
.report-page table{ width:100%; border-collapse:collapse; margin-bottom:10px; font-size:13px;}
.report-page table th, .report-page table td{ border:1px solid #999; padding:6px 8px; }
.report-page table th{ background:#f1e9da; }
.report-page .sig-row{ display:flex; justify-content:space-between; margin-top:60px; font-size:13px; }
.report-page .sig-row div{ text-align:center; width:220px; border-top:1px solid #333; padding-top:6px; }

@media print{
    .no-print{ display:none !important; }
    body{ background:#fff; }
    .report-page{ border:none; margin:0; max-width:100%; }
}
