.bottom-buttons input[type="button"] {
    padding: 10px 20px;   /* makes button look larger */
    font-size: 1.1rem;    /* larger text */
    border-radius: 8px;   /* nicer shape */
    min-width: 120px;     /* ensures consistent width */
    cursor: pointer;
	margin: 8px 8px; 
}

.bottom-buttons input[type="button"]:hover {
    background-color: #333;   /* darker background */
    color: #fff;              /* clearer text */
    transform: scale(1.08);   /* small zoom */
    box-shadow: 2px 2px 8px rgba(0,0,0,1); 
}

.bottom-buttons input[type="button"]:focus {
    outline: 3px solid #cc0000;   /* strong visible outline */
    outline-offset: 0px;
    /*transform: scale(1.08);*/
    background-color: #222;
    color: #fff;
}


.row-height {
	padding: 2px 0;
	height: auto;
}

.section-block {
  width: 100%;
  max-width: 1100px;
  margin: 6px auto;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
}

.section-heading {
  font-size: 1.4rem;
  margin: 10px 0;
}

.definition-title {
  width: 800px;
  text-align: center;
  font-size: 1.3rem;
  margin: 0px 0px 25px 0;
}

.definition-row {
	display: grid;
    grid-template-columns: 80px 280px 450px;   /* matches label width in enrollment */
	column-gap: 20px;
	row-gap: 12px;
	align-items: top;
	margin-bottom: 14px;
}



.multi-column-label {
	min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* if needed for visibility */
	font-size: 1rem;
}


/* collapse to 1 column under high zoom or narrow viewport */
@media (max-width: 900px) {
  .sex-program-row {
    grid-template-columns: 1fr;
  }
  .enrollment-row {
    grid-template-columns: 1fr;
  }
  .semester-hours-row {
    grid-template-columns: 1fr;
  }
}

/* Collapse at narrow container width OR high zoom */
@media (max-width: 450px) {
  .definition-row {
    grid-template-columns: 1fr; /* ONE column */
  }
}

.definition-label {
  font-weight: bold;
}

.definition-text {
  line-height: 1.4;
}


.style50 {
  background-color: #CCCCCC;
  line-height: 1.5;
}
tr.style50 > td.style35 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  line-height: 2.0 !important;
  vertical-align: middle !important;
}


#form2 table td {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  
  width: auto;
}

#form2 table tr {
  line-height: 1.1 !important;
}

#form2 table td:first-child {
  width: clamp(300px, 20vw, 400px);
  /*width: 350px;*/
}

.input-wrapper {
    position: relative;
    display: inline-block;
	width: auto !important;
}

.input-wrapper label {
    display: none; /* hidden label shouldn't take space */
}

.input-wrapper input {
    width: min-content !important;
}


.error-icon {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    display: none;              /* hidden by default */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c33;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 0;
    display: none;              /* keep hidden */
}



.error-icon {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0;          
    width: 18px;         
    height: 18px;        
    border-radius: 50%;  
    background: #c33;    /* whatever your icon background is */
    color: white;
    border: none;
    font-size: 14px;     /* adjust if needed */
    cursor: pointer;
}


.error-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid #cc0000;
  padding: 0;                 /* remove outer padding */
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,.4);
  z-index: 9999;
}

.popup-content {
  padding: 16px 20px;         /* controlled padding: less top space */
  text-align: center;         /* centers the Close button */
}

.popup-close-btn {
  margin-top: 12px;           /* space above button */
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  background-color: #cc0000;
  color: white;
  border: none;
  border-radius: 8px;
}

.popup-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}


.num-msg {
  font-size: 0.9rem;
  color: #b00000;
  margin-top: 4px;
}

input[type="text"] {
  width: auto;
  min-width: 40px;
  max-width: 300px; /* flexible, responsive */
  box-sizing: border-box;
}



.left-span {
  width: 150px;
  font-weight: bold;
}

.right-span {
  flex: 1;
}


.page-container {
  max-width: 1200px;
  /* width: 98%; */
  width: 100%;
  margin: 0 auto;     /* centers the container */
  background: white;  
  border: 1px solid black; 
  padding: 10px;
  /*overflow-x: hidden;*/
  box-sizing: border-box;
}




.hidden-small {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);      /* THIS fixes DevTools warnings */
    white-space: nowrap;
    border: 0;
}


body {
	/*BACKGROUND-COLOR: #BCBEC0;*/
	font-size: 1rem; font-family: "Source Serif 4", Arial, Helvetica, serif;
}
.style27 {font-size: 1rem; font-family: "Source Serif 4", Arial, Helvetica, serif;  }
.style27b {font-size: 1rem; font-family: "Source Serif 4", Arial, Helvetica, serif; font-weight: bold;  }
.zero {
	background-color: #CCFFCC;
}
.grandtot {
	font-weight: bold;
	color: #FFFFFF;
	border-top-color: #FF0000;
	border-right-color: #FF0000;
	border-bottom-color: #FF0000;
	border-left-color: #FF0000;
	background-color: #000000;
}
.style33 {
	font-family: "Source Serif 4", Arial, Helvetica, serif;
	font-size: 18px;
	font-weight: bold;
}
.style36 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.totals-color {
	background-color: #CCCCCC;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
}
.textbox {
	font-family: "Source Serif 4", Arial, Helvetica, serif;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-variant: normal;
	background-color: #CACA00;
	float: none;
	height: auto;
	width: auto;
	border: thin solid #333333;
	clear: none;
}
.style34 {color: #FF0000}
.style35 {color: #000000}

.font1 {
	color: #FFF;
	font-family: "Source Serif 4", Arial, Helvetica, serif;
	font-size: 12px;
}




@font-face {
    font-family: 'Source Serif 4';
    src: url('../studentbudget/fonts/source-serif-4-v7-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* All CSS should be outside of old HTML comment syntax */
body {
    BACKGROUND-COLOR: #BCBEC0;
}

#loginerror {
    font-size: 12px;
    color: #FF0000;
    font-weight: bold;
    visibility: <% Response.Write(strLoginError) %>;
}

* {
    font-family: "Source Serif 4", Times, serif;
}

.style12 {
    font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-size: 12px;
}

.style12b {
    font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-weight: bold;
    font-size: 12px;
}

.style14 {
    font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-size: 14px;
}

.style14b {
    font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-size: 14px;
    font-weight: bold;
}

.style16 {
	font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-size: 16px;
}

.style16b {
    font-family: "Source Serif 4", Arial, Helvetica, serif;
    font-size: 16px;
	font-weight: bold;
}


@media (max-width: 380px) {
  .login-grid {
    grid-template-columns: 1fr;
  }
  .login-grid > * {
    grid-column: 1 !important;
  }
}


form {
	margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}


@font-face {
    font-family: 'Source Serif 4';
    src: url('../studentbudget/fonts/source-serif-4-v7-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* optional: centers text inside */
}

h1 {
  font-size: 28px; 
  font-weight: bold;
  margin-bottom: 15px;
}


.login-container {
  max-width: 450px;     /* adjust width as desired */
  width: 100%;
  margin: 0 auto;       /* centers under the H1 */
  padding: 20px 30px;  
  border: 1px solid #999;
  box-sizing: border-box;
}

.login-grid label {
  font-weight: bold;
  text-align: left;
}

.login-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 100px auto;
  column-gap: 20px;
  row-gap: 12px;
  font-size: 14px;
  padding: 10px 0;
  justify-items: start;   /* <-- key */
}

.login-grid input,
.login-grid select {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid #999;
  box-sizing: border-box;
}


.narrow-container {
	max-width: 650px;    
	width: 100%;	
	margin: 0 auto;        
	padding: 10px 10px 10px 10px;       
	box-sizing: border-box;
}



.shade1
{
    background-color: #A6D3C9;
    
}
.shade2
{
    BACKGROUND-COLOR: #CFD5E7;
}
.shade3
{
    BACKGROUND-COLOR: #e8e8e8
}
.shade4
{
    BACKGROUND-COLOR: #dcdcdc
}
.shade5
{
    BACKGROUND-COLOR: #e8e8e8
}
.shade6
{
    BACKGROUND-COLOR: #e8e8e8
}
.shade7
{
    BACKGROUND-COLOR: #FFFFFF
}


body {
	BACKGROUND-COLOR: #BCBEC0;
	font-family: Times New Roman;
}

#form2 input[type="text"],
#form2 input[type="email"],
#form2 input[type="tel"],
#form2 input[type="number"] {
    box-sizing: border-box;
	border: 1px solid #666 !important;
    border-radius: 8px !important;
    padding: 3px 7px;
}


.input-small {
	width: fit-content;        /* formerly 70px */
	min-width: 60px;    /* prevents shrink at intermediate zoom */
	box-sizing: border-box;
    border: 1px solid #666 !important;
    border-radius: 8px !important;
    padding: 3px 7px;
}

.input-medium {
	width: fit-content;        /* formerly 90px */
	max-width: 120px;   /* zoom-friendly cap */
	min-width: 70px;    /* prevents shrink at intermediate zoom */
	box-sizing: border-box;
	border: 1px solid #666 !important;
	border-radius: 8px !important;
	padding: 3px 7px;
}

.sex-program-row,
.enrollment-row,
.semester-hours-row
 {
	display: grid;
	grid-template-columns: 80px 350px 200px 150px; /* indent | label | UG | G */
	column-gap: 20px;
	row-gap: 12px;
	align-items: flex-start;
	margin-bottom: 4px;
	justify-items: start; 
}

.row {
  display: flex;
  align-items: center;
  gap: 20px;           /* space between label and input */
  margin-bottom: 6px; /* one item per row */
}

.row label {
  width: 150px;        /* consistent left column */
  font-weight: bold;
}

.row input {
  flex: 1;             /* input expands to fill right column */
  max-width: 300px;    /* optional: limit input width */
  box-sizing: border-box;
  	border: 1px solid #666 !important;
	border-radius: 8px !important;
	padding: 3px 7px;
}

