/* Shared form density. Keep controls readable and preserve the existing form order. */
body.site-page #main .application-summary{display:block;padding:24px;border:1px solid #bbd3e3;border-radius:18px;background:linear-gradient(120deg,#edf5fc,#f0f7f2)}
body.site-page #main .application-summary-meta{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;color:#365d73;font-size:.9rem;line-height:1.7}
body.site-page #main .application-summary-state{padding:5px 11px;border:1px solid #b4d5bf;border-radius:20px;background:#e7f4eb;color:#285b3a;font-size:.85rem}
body.site-page #main .application-summary h1{margin:14px 0 12px;font-size:clamp(1.4rem,2.15vw,1.9rem);line-height:1.6;color:#224c68}
body.site-page #main .application-summary-description{margin:0;padding-top:12px;border-top:1px solid #c6d8d7;font-size:1rem;line-height:1.75;color:#365b52;max-width:none}
body.site-page #main form{margin-block:10px;row-gap:12px}
body.site-page #main form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){box-sizing:border-box;min-height:44px;padding:8px 10px;font-size:16px;line-height:1.5;margin-block:4px 0;max-width:100%;min-width:0}
body.site-page #main form textarea{height:88px;min-height:80px;resize:vertical}
body.site-page #main form label{margin-block:6px;font-size:.95rem;line-height:1.65;min-width:0}
body.site-page #main form :is(input[type=checkbox],input[type=radio]){flex:none;width:20px;height:20px;min-height:0;margin-top:3px}
body.site-page #main form :is(.check,.biodata-check){gap:9px;margin-block:8px;font-size:.92rem;line-height:1.65}
body.site-page #main form fieldset{min-width:0;margin:12px 0;padding:12px 14px}
body.site-page #main form legend{padding-inline:6px;font-size:1rem;line-height:1.65}
body.site-page #main form :is(.campaign-form-grid,.volunteer-fields,.event-student-fields,.admin-form-grid,.member-editor-grid,.family-form-grid,.biodata-grid,.settings-fields,.form-grid){gap:10px 16px;margin-block:0 10px}
body.site-page #main form :is(.campaign-form-grid,.volunteer-fields,.event-student-fields,.admin-form-grid,.member-editor-grid,.family-form-grid,.biodata-grid,.settings-fields,.form-grid)>label{margin:0}
body.site-page #main form .member-editor-grid{row-gap:4px}
body.site-page #main .member-editor-form form fieldset{margin-block:10px;padding:10px 12px}
body.site-page #main form :is(.student-apply-hint,.volunteer-hint,.field-count,.field-optional,.registration-field-note,.admin-field-help,.ux-date-hint){margin-block:4px;font-size:.82rem;line-height:1.6}
body.site-page #main form>p{margin-block:6px;line-height:1.7}
body.site-page #main form :is(button[type=submit],button:not([type]),.button){min-height:44px;padding:8px 14px;line-height:1.6;margin-block:8px 0}
body.site-page #main form :is(.form-actions,.settings-form-actions,.volunteer-submit){padding-top:12px;margin-top:12px;gap:10px}
body.site-page #main :is(.panel:has(form),.registration-form-card,.member-editor-form,.volunteer-form-card,.event-registration-panel,.family-details-card){padding:18px}
body.site-page #main :is(.student-apply-intro,.volunteer-form-title,.student-apply-intro-title,.settings-card-heading,.student-apply-form>header,.event-registration-panel>header){padding-block:10px;margin-block:0 12px}
body.site-page #main :is(.student-apply-intro,.volunteer-form-title,.event-registration-panel>header) p{margin-block:4px;line-height:1.7}
body.site-page #main .student-apply-terms{max-height:130px;padding:10px 12px;font-size:.88rem;line-height:1.7}
body.site-page #main .student-apply-step legend>span{width:25px;height:25px;font-size:.85rem}
body.site-page #main .volunteer-option{padding:10px 12px}
body.site-page #main .volunteer-options{gap:10px}
body.site-page #main .settings-field{gap:4px}
body.site-page #main .settings-intro{margin-bottom:12px}
body.site-page #main .registration-form-card h2{margin-block:0 10px}
body.site-page #main form :is(h2,h3){margin-block:8px;font-size:1.15rem;line-height:1.6}
body.site-page:is(.page-login,.page-register,.page-studentapply,.page-studentvolunteer,.page-member,.page-matrimony) #main :is(.auth-hero,.registration-heading,.student-apply-heading,.volunteer-hero,.member-editor-hero){padding:20px;gap:18px}
body.site-page #main .volunteer-hero-art{max-height:150px;object-fit:contain}
@media(min-width:1200px){body.site-page #main :is(.student-apply-form,.event-registration-panel) .campaign-form-grid,body.site-page #main .event-registration-panel .event-student-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 body.site-page #main :is(.panel:has(form),.registration-form-card,.member-editor-form,.volunteer-form-card,.event-registration-panel,.family-details-card){padding:14px}
 body.site-page #main form fieldset{padding:10px 12px;margin-block:10px}
 body.site-page #main form :is(.campaign-form-grid,.volunteer-fields,.event-student-fields,.admin-form-grid,.member-editor-grid,.family-form-grid,.biodata-grid,.settings-fields,.form-grid){row-gap:10px}
 body.site-page:is(.page-login,.page-register,.page-studentapply,.page-studentvolunteer,.page-member,.page-matrimony) #main :is(.auth-hero,.registration-heading,.student-apply-heading,.volunteer-hero,.member-editor-hero){padding:16px;gap:14px}
}
