html	{font-family: 'Noto Sans', sans-serif;
	line-height: 1.15;
	-ms-text-size-adjust:     100%;
	-webkit-text-size-adjust: 100%;
	}
	
/* Ensure the body remains white */
body {
    margin: 0 auto;
    background-color: #FFF !important;
}

form {padding:30px 0px 30px 0px;width:100%;margin: 0 auto;}

footer {padding-top:50px;}

#HEAD_SECTION  {padding:10px;
	margin:0 auto;
	text-align:center;}
	

#HEAD_INNER img  {
	display: inherit;
	margin-right: auto;
		}

/* Language globe */
         .langdrop-label-dd {
             padding: 16px!important;
         }		
		
/* submit button */
.hidden {visibility:hidden;}
div#FOOT_SECTION {line-height: 1.2;}
	
#BUTTON_TABLE, #PROGRESS_TABLE  
	{padding:10px;
	margin:0 auto;
	max-width:1200px;
	text-align:center;}

/* BODY_SECTION styling */
#BODY_SECTION {
    background: white;
  /*  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); */ /* Subtle drop shadow */
    padding: 20px;
    border-radius: 10px;
}

#FOOT_SECTION  {padding:10px;
	margin:0 auto;
	text-align:center;
	font-size:1rem;
	color: #4e6889;
	 background-color:#fff;
	}
	
a {
	text-decoration:underline;
	font-weight:600;
}

#FOOT_SECTION a {color:#E3C179;}

#PROGRESS_TABLE > div {text-align:center;font-size:.8em;}

.BOUTONS {margin: 0 auto;}

label {display:inline-block;width:100%;min-width:100px;}

/*label {display:inline-block;max-width:100%;padding:5px;}*/

body {
	background-color: #4E6889; 
	line-height: 1.8;
	font-size:1.1rem;
}
form {background-color:#FFF;}

h1, h2, h3, h4, h5, h6 {letter-spacing: -1px;color:#375372}

#HEAD_SECTION {
	background-color:#FFFFFF;
	color:#000000;
	padding:10px 0px 10px 0px !important;
	/*padding:30px!important;*/
	text-align:left;
	}
	
#HEAD_INNER{
	padding:0px;
	margin:0px;
	/*max-width:1000px; why is this here? It makes error messages wrap weirdly. If anyone knows why this was added, lmk and I can restore this. */
}
	
/* MAINLINE - Soft Gray for Subtle Separation */
.MAINLINE {
    background-color: #f5f5f5; /* Light gray */
  /*  padding: 10px; */
    border-radius: 5px;
    margin-bottom: 15px;
}

/* BOTTOMLINE - Light Blue for Slight Contrast */
.BOTTOMLINE {
    background-color: #e3f2fd; /* Light blue */
    height: 2px;
    margin-top: 30px;
}


input.BUTTON {
	background-color:#a9c94b !important
}

.btn {  
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  background-color: #FFF;
  color: #7FAF3D;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  padding: 10px 30px 10px 30px;
  font-size: 20px;
  border-radius: 5px;
  border: 1px solid;
  border-color: #7FAF3D;
  cursor: pointer;
}

.btn:hover {
	background-color:#7FAF3D;
	border:1px solid;
	color:#FFF;
}

#sa-code {
	width: 300px;
	height: 33px;
	font-size: 18px;
	text-align:center;
}

/* General Button Styling */
input.BUTTON[name="_previous_question"],
input.BUTTON[name="_next_question"] {
  position: relative;
  width: 160px; /* Slightly wider for better touch */
  height: 75px;
  inset: 1px;
  background: #78b94c !important; /* Primary color */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease; /* Smooth transition */
  cursor: pointer;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3); /* Drop shadow */
}

input.BUTTON[name="_previous_question"]:hover,
input.BUTTON[name="_next_question"]:hover {
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* Back Button Shape */
input.BUTTON[name="_previous_question"] {
  -webkit-clip-path: polygon(100% 10%, 36.8% 10%, 36.8% 0, 0 50%, 36.8% 100%, 36.8% 90%, 100% 90%);
  clip-path: polygon(100% 10%, 36.8% 10%, 36.8% 0, 0 50%, 36.8% 100%, 36.8% 90%, 100% 90%);
}

/* Next Button Shape */
input.BUTTON[name="_next_question"] {
  -webkit-clip-path: polygon(0 10%, 63.2% 10%, 63.2% 0, 100% 50%, 63.2% 100%, 63.2% 90%, 0 90%);
  clip-path: polygon(0 10%, 63.2% 10%, 63.2% 0, 100% 50%, 63.2% 100%, 63.2% 90%, 0 90%);
}

input.BUTTON[value="Submit"], input.BUTTON[value="Send"] {background: #0090c8!important;text-align: left; padding-left: 20%;}

/* Hover Effects */
input.BUTTON[name="_previous_question"]:hover,
input.BUTTON[name="_next_question"]:hover {
  background: #4b8c34 !important; /* Darker blue on hover */
  color: white !important;
  transform: scale(1.05); /* Slight enlargement for effect */
}

input.BUTTON[name="_next_question"]:hover[value="Submit"], input.BUTTON[name="_next_question"]:hover[value="Send"]{background: #2E4A6B!important; text-align: left; padding-left: 20%;}


/* Click (Active) Effect */
input.BUTTON[name="_previous_question"]:active,
input.BUTTON[name="_next_question"]:active {
  transform: scale(0.95); /* Slight shrink effect */
  background: #4b8c34 !important;
}

/* Focus Styles (For Accessibility & Mobile Users) */
@media (pointer: coarse), (hover: none) { 
  input.BUTTON[name="_previous_question"]:focus,
  input.BUTTON[name="_next_question"]:focus {
    background: #4b8c34 !important; 
    color: white !important;
  } 
}

/************************************************************************************/
/* Special formatting of Back Button for mobile */
/************************************************************************************/

@media (max-width: 768px) { 

input.BUTTON[name="_previous_question"] {
  background: #E67E22!important; /* Deep Orange */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

input.BUTTON[name="_previous_question"]:hover {
  background: #D45D1B!important; /* Slightly Darker */
}

input.BUTTON[name="_previous_question"]:active {
  background: #B7490F!important; /* Even Darker */
}

input.BUTTON[name="_previous_question"] {
    width: 50px; /* Reduce width to show only the head */
    -webkit-clip-path: polygon(100% 10%, 50% 10%, 50% 0, 0 50%, 50% 100%, 50% 90%, 100% 90%);
    clip-path: polygon(100% 10%, 50% 10%, 50% 0, 0 50%, 50% 100%, 50% 90%, 100% 90%);
  }

}

/************************************************************************************/

.btn-success, .btn-lg {
  border: none !important;
}

.form-check-input:checked {
  background-color: #78b94c!important;
  border-color: #b3d582!important;
}

.unselectable{
  background-color: #eeeeee;
  cursor: not-allowed;
  pointer-events: none;
}

/* Buttons Styling */
.START {
    background-color: #4CAF50; /* Green button */
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    border: none;
    display: inline-block;
}

.START:hover {
    background-color: #3e8e41; /* Darker green */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.STARTRED {
    background-color: #d53535; /* Red button */
    padding: 10px 20px;
    margin-bottom: 2%;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    border: none;
    display: inline-block;
}

.STARTRED:hover {
    background-color: #a72a2a; /* Darker red */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.START:active {
    transform: scale(0.95);
}

/* Center all div elements with class starting with show- */
[class^="show-"] {
    display: block;
    text-align: center;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


.show-en, .visible-en {display: block;}

.show-fr, .visible-fr {display: none;}

/*For clipboard feature. Additional javascript required to be found in resources folder. */
/* -------------------------------------------------------- */
/* -------------------------------------------- Clipboard */
/* -------------------------------------------------------- */

        .clipboard-container {
            position: relative;
        }

.clipboard-button {
             display: inline-block;
             width: 110px;
             height: auto;
             background-color: #4CAF50;
             color: white;
             border-radius: 6px;
             cursor: pointer;
             position: relative;
             text-align: center;
             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
             padding: 10px;
             float: right;
             margin-left: 5px;
         }

        .clipboard-button::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 12px;
            width: 75px;
            height: 10px;
            background-color: #ffffff;
            border-radius: 4px 4px 0 0;
        }

        .clipboard-message {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #000;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            display: none;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .clipboard-message.show {
            display: block;
            animation: fadeOut 3s forwards;
        }

/* -------------------------------------------------------- */
/* -------------------------------------------- Non-CW Dropdowns */
/* -------------------------------------------------------- */
    /* Dropdown container floated right */
    .dropdown {
      position: relative;
      display: inline-block;
      font-family: sans-serif;
      float: right;
    }

    /* Hide the checkbox */
    .dropdown-checkbox {
      display: none;
    }

    /* Style for the toggle button */
    .dropdown-label {
      background-color: #007BFF;
      color: #fff;
      padding: 10px 20px;
      cursor: pointer;
      border-radius: 4px;
      user-select: none;
      display: inline-block;
    }

.dropdown-label:hover, .dropdown-label:active {background: #007BFF;}

    /* Dropdown menu styling */
    .dropdown-menu {
      position: absolute;
      top: 100%;
      right: 0; /* Align the menu to the right edge */
      margin: 0;
      padding: 0;
      list-style: none;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      display: none;
      z-index: 1000;
      min-width: 127px;
    }

    /* Each dropdown list item */
    .dropdown-menu li {
      padding: 10px;
      text-align: center;
      transition: background-color 0.3s ease;
    }

    /* Change list item background to transparent on hover */
    .dropdown-menu li:hover {
      background-color: transparent;
    }

    /* Toggle the dropdown menu when checkbox is checked */
    .dropdown-checkbox:checked + .dropdown-label + .dropdown-menu {
      display: block;
    }

    /* Style for language buttons */
    .btn-language {
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 1em;
      color: #333;
    }
/* -------------------------------------------------------- */
/* -------------------------------------------- Language Globe */
/* -------------------------------------------------------- */    
         /* Style for the toggle button */
         .langdrop-label-dd {
             background-color: #007BFF;
             color: #fff;
             padding: 8px;
             cursor: pointer;
             border-radius: 50%; /* Makes it round */
             width: 16px;
             height: 16px;
             display: flex;
             align-items: center;
             justify-content: center;
             font-size: 14px;
             border: none;
             outline: none;
         }
 
         .langdrop-label-dd:hover {
             background-color: #0056b3;
         }
 
         /* Hide default checkbox */
         .langdrop-checkbox {
             display: none;
         }
         
         label.langdrop-label-dd {
             min-width: auto !important; 
         }
 
         /* Dropdown menu styling */
         .langdrop-menu {
             position: absolute;
             top: 40px; /* Adjusted for the smaller button */
             right: 5px;
             list-style: none;
             background: #fff;
             border: 1px solid #ccc;
             border-radius: 4px;
             box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
             display: none;
             z-index: 1000;
             min-width: 110px;
             padding: 5px 0;
             text-align: center; /* Center text */
         }
 
         /* Each dropdown list item */
         .langdrop-menu li {
             padding: 8px;
             transition: background-color 0.3s ease;
             cursor: pointer;
         }
 
         .langdrop-menu li input {
             background: none;
             border: none;
             color: inherit;
             cursor: pointer;
             font: inherit;
             padding: 8px;
             width: 100%;
             text-align: center;
         }
 
         /* Hover effect */
         .langdrop-menu li:hover {
             background-color: #f0f0f0;
         }
 
         /* Show dropdown menu when checkbox is checked */
         .langdrop-checkbox:checked + .langdrop-label-dd + .langdrop-menu {
             display: block;
        }
    
.LOGO_SPAN > img:nth-child(1) {
  width: 220px;
}
.LOGO_SPAN {
display: inline-block;
width: 220px;
text-align:left;
padding:0px;
margin:0px;
}

.LANG_SPAN {
display: inline-block;
width:20%;
height:auto;
text-align:right;
padding:0px;
margin:0px;
}

.err, .ERREUR, #MESSAGEERREURGENERAL {
	color: #b85c52;
}

#MESSAGEERREURGENERAL {display: none; /*display: inline-block;*/ width: 500px!important; margin: 5px;}

.erreur {color:#b85c52;}
.form-check-input:checked {
  background-color: #a8d091!important;
  border-color: #b3d582!important;
}

.unselectable{
  background-color: #eeeeee;
  cursor: not-allowed;
  pointer-events: none;
}

.LOGO_SPAN > img:nth-child(1) {
  width: 320px;
}
.LOGO_SPAN {
display: inline-block;
width: 220px;
text-align:left;
padding:0px;
margin:0px;
}

.LANG_SPAN {
display: inline-block;
width:20%;
height:auto;
text-align:right;
padding:0px;
margin:0px;
}

#BODY_SECTION, #BUTTON_TABLE, #PROGRESS_TABLE {
	background-color:#FFF;
	}
	
#BUTTON_TABLE div {padding:.8em;margin-top:10%;} 

/* Hover to Popup on coarse screens */

@media (pointer: coarse), (hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }
  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: #ffffff;
    background-color: #555555;
    border: 1px solid;
    width: 15vh;
    padding: 3px;
    font-size: 12px;
    z-index: 10;
  }

}

/* for popout modals */
/* Ensure modal is hidden on page load */
.modal {
    display: none; /* Hidden initially */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex; /* Ensure it centers */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Ensure modal content is hidden initially */
.modal-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* centers the recaptcha */
div.g-recaptcha {margin:auto; max-width:305px;}

/* When modal is open, apply visible styles */
.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1);
}

.modal-content-priv {
	text-align: left!important;
}

.modal-content-boton {
	text-align: centert!important;
}

/* Close button (X) */
.close {
    color: #ff5b5b;
    margin-left: auto;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff0000;
}

/* Modal Header */
.modal-header h4 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

/* Modal Body */
.modal-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Modal Footer */
.modal-footer {
    margin-top: 15px;
}

/* Span Text Styling */
span.openModal {
    color:#FD9C0D;
    cursor: pointer;
}

span.bigMspan {
	padding:20px;
	border: solid 1px;
 	border-radius: 8px;
}

span.bigMspan:hover {
	background-color:#FD9C0D;
	color:white;
}

/* Button Styling */
/* Ensure modal-footer aligns buttons properly */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Aligns content (button) to the right */
    padding-top: 10px;
    width: 100%; /* Ensures it spans the modal */
}

/* Default Close Button (for Desktop) */
.closeModal {
    background-color: #FD9C0D;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    font-weight: bold;
    width: auto; /* Ensures it stays small */
    max-width: 150px; /* Prevents it from stretching */
    margin: 10px 0 10px auto; /* Pushes it to the right */
    display: block; /* Ensures proper width handling */
}

/* Hover Effect */
.closeModal:hover {
    background-color: #F78C00;
}

/* Full-Width Close Button for Mobile */
@media (max-width: 600px) {
    .modal-footer {
        justify-content: center; /* Center the button on mobile */
    }

    .closeModal {
        width: 100%; /* Full width for mobile */
        max-width: unset; /* Ensures it takes full width */
        margin: 10px auto; /* Centers it */
    }
}

/* Full-Width Close Button for Small Screens */
@media (max-width: 480px) {
    .closeModal {
        width: 100%;
        padding: 12px;
    }
}


/************************************************************************************/
/* Special formatting for mobile */
/************************************************************************************/

@media only screen and (max-width:767px) {


	.LOGO_SPAN > img:nth-child(1) {
	  width: 220px;
	}

	/* Halve the padding in textboxes on mobile; R can see more of what they wrote and it's overall easier to read */
	
	.TEXTBOX, .NUMBOX {padding: 5px !important;}

@media only screen and (max-width:414px) {
	
	
	.BUTTON {  
	max-width: 100px;		
	}
	.btn-success, .btn-lg, .BUTTON, .BUTTON:hover {
	  font-size: 1rem;
	}
	
}



textarea {width:100%;}
	
#FOOT_SECTION  {padding:10px;
	margin:0 auto;
	text-align:center;
	font-size:1rem;
	color: #4e6889;
	 background-color:#fff;
	}

#FOOT_SECTION a {color:#E3C179;text-decoration:none;}
#FOOT_SECTION a:hover {color:#E3C179;text-decoration:underline;}
#FOOT_SECTION a:visited {color:#E3C179;text-decoration:none;}

.p-h {color: #4E6889;}

.center {text-align: center;}


/* character count for open ends */
span[id^="rchar"] {color:#39598C;}


@media only screen and (max-width:600px) {

	.TEXTBOX, .NUMBOX {
	  width:95%!important;
	} 
}

.TEXTBOX, .NUMBOX {
  max-width: 95%;
  display: inline-block;
  border: 1px solid #bbc2af;
  border-radius: 5px;
  padding: 10px;
  margin-top:3%;
  box-sizing: border-box;
  margin-left: 15px;
} 

/* .NUMBOX {
 margin-left: 3%;
} */

textarea {font-family: 'Noto Sans', sans-serif;}

textarea:focus, textbox:focus {
  -webkit-box-shadow: inset 2px 2px 2px 0px #dddddd;
  -moz-box-shadow: inset 2px 2px 2px 0px #dddddd;
  box-shadow: inset 2px 2px 2px 0px #dddddd;
}  

/* -------------------------------------------------------- */
/* -------------------------------------------- TOOLTIPS */
/* -------------------------------------------------------- */

	.tooltip {
		position: relative;
		display: inline-block;
		border-bottom: 1px dotted black;
		opacity:1;
	}

	.tooltip .tooltiptext {
		visibility: hidden;
		min-width: 500px;
		background-color: #555;
		color: #fff;
		text-align: left;
		font-weight:normal;
		border-radius: 6px;
		padding: 5px;
		position: absolute;
		z-index: 1;
		bottom: 125%;
		left: 50%;
		margin-left: -60px;
		opacity: 1;
		transition: opacity 1s;
	}

	.tooltip .tooltiptext::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 10%;
		margin-left: -5px;
		border-width: 5px;
		border-style: solid;
		border-color: #555 transparent transparent transparent;
	}

	.tooltip:hover .tooltiptext {
		visibility: visible;
		opacity: 1;
	}

/* if needed css accordions */

/* lang accordion dropdowns */
/*details.lang {position:absolute; color: white;z-index:5;}*/
 details.lang {position:relative; float:right; color: white;z-index:5;}
details.lang { background-color:#003F70; padding:10px;border-radius:5%;cursor:pointer;}

/* buttons are specifc to lang class */
.BUTTONL {color:white;font-size:1em;cursor:pointer;}
.BUTTONL:hover {text-decoration: underline;}

details > summary {
  list-style: none;
}

details.accordion {
	background-color: #f1f1f1;
	color: #444;
	cursor: pointer;
	padding: 18px;
	width: 100%;
	border: none;
	display:inline-block;
	text-align: left;
	outline: none;
	font-family: 'Open Sans', Noto Sans, sans-serif;
	transition: 0.4s;
}

summary.heading {
	font-weight: 600;
}

summary > p.panel {
	padding: 0 18px;
	background-color: transparent;
	font-size: 1em;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}

details[open] summary ~ * {
  animation: sweep .5s ease-in-out;
}
@keyframes sweep {
  0%    {opacity: 0; margin-top: -10px}
  100%  {opacity: 1; margin-top: 0px}
}


@media only screen and (max-width: 500px) {
    .g-recaptcha {
        transform:scale(0.77);
        transform-origin:0 0;
    }
}


