@import url("../../include/jscalendar/calendar-system.css");

/* calendar: */

.calendar .nav {
    background: #DDDDDD url("../../include/jscalendar/menuarrow.gif") no-repeat 100% 100%;
}

.calendar .combo {
    z-index: 99;
}


/* new classes: */

div.mpform {
    background-color:#fff;
}

div.mpform p {
    padding:1px;
    margin:1px;
}

div.mpform p.help_txt {
    color:#600;
}

div.mpform fieldset {
    padding: 0px 6px 6px 6px;
    margin: 6px 0px 16px 0px;
    background-color: #f7f7f7;
    width: 610px;
}

/* IE7 specific: */
*:first-child+html div.mpform fieldset {
    padding: 6px 6px 6px 6px;
    margin: 22px 0px 24px 0px;
}

div.mpform legend {
    padding: 6px 6px 0px 6px;
    margin: 0px 0 20px 0;
    background-color: #f7f7f7;
    border-left: 1px solid #666;
    border-top: 1px  solid #666;
    border-right: 1px  solid #666;
    font-weight: bold;
}

/* IE7 specific: */
*:first-child+html div.mpform legend {
    padding: 2px 6px 0px 6px;
    margin: -22px 0 10px 0;
}


/* >>>>>>>> Layout without main table: */
div.mpform div.newline {
    clear: both;
    margin: 0;
    padding: 0;
    margin: 0px;
    border-width: 0px;
    height: 0px;
    width: 100%;
}

div.mpform div.questionbox {
    clear: left;
    float:left;
    width:180px;
    height:auto;
    padding: 4px;
    margin: 2px 0px 2px 2px;
    border-width: 0px;
    text-align: right;
}

div.mpform fieldset div.questionbox {
    clear: left;
    float:left;
    width: 172px;
    height:auto;
    padding: 4px;
    margin: 2px 0px 2px 2px;
    border-width: 0px;
    text-align: right;
}

div.mpform div.answerbox {
    float:left;
    width:420px;
    height:auto;
    padding: 4px;
    margin: 2px 2px 2px 0;
}

div.mpform fieldset div.answerbox {
    float:left;
    width: 412px;
    height:auto;
    padding: 4px;
    margin: 2px 2px 2px 0px;
    border: 0px;
}

div.mpform div.submitbox {
    clear: both;
    float: left;
    width: 602px;
    height: 26px;
    padding: 8px;
    margin: 2px;
    text-align: center;
}

div.mpform div.submitbox input {
    cursor: pointer;
    border: 2px solid #999;
    color:#666;
    text-align: center;
    width: 200px;
    margin: 2px 2px 2px 180px;
}
/* <<<<<<<<< Layout without main table */

.mpform_title,
.mpform_help {
    font-weight: normal;
    vertical-align: top;
    padding: 6px;
    background-color: #f7f7f7;
    text-align: left;
    color: black;
}

.mpform_help {
    max-width: 16px !important;
    max-height: 16px !important;
}

.mpform_error .mpform_title,
.mpform_error .mpform_field,
.captcha_err  .mpform_title,
.captcha_err  .mpform_field {
    color: red !important;
}

.mpform_field {
    width:460px;
    background-color:#eee;
    padding:6px;
}

.mpform_date,
.mpform_email,
.mpform_textarea,
.mpform_text,
.mpform_select {
    background-color:#F4F4f4;
}

.mpform_err_date,
.mpform_err_email,
.mpform_err_textarea,
.mpform_err_text,
.mpform_err_radio,
.mpform_err_radio_label,
.mpform_err_select,
.mpform_err_select_label,
.mpform_err_checkbox,
.mpform_err_checkbox_label,
.captcha_err,
.captcha_err input {
    background-color:#F4A4A4 !important;
    border: 1px solid red !important;
}

div.mpform_missing {
    background-color: red;
    border: 2px solid yellow;
    color: yellow;
    font-weight: bold;
    padding: 6px;
}

.mpform_textfield.mpform_readonly input.mpform_text {
    background-color: #ddd;
}

/* old classes: */
.mpform_date:hover,
.mpform_email:hover,
.mpform_textarea:hover,
.mpform_text:hover,
.mpform_radio:hover,
.mpform_select:hover,
.mpform_checkbox:hover,
.mpform_err_date:hover,
.mpform_err_email:hover,
.mpform_err_textarea:hover,
.mpform_err_text:hover,
.mpform_err_radio:hover,
.mpform_err_select:hover,
.mpform_err_checkbox:hover {
    background-color: white;
}

.mpform_date,
.mpform_err_date{
    width: 120px;
}

.mpform_date_img{
    cursor: pointer;
    border: 0;
    vertical-align: middle;
}
.mpform_email,
.mpform_err_email {
    width:410px;
}

.mpform_text,
.mpform_err_text {
    width:410px;
}
.mpform_radio,
.mpform_err_radio{
    width: 18px;
}
.mpform_checkbox,
.mpform_err_checkbox{
    width: 24px;
}
.mpform_select,
.mpform_err_select{
    width:410px;
}

.mpform_heading {
    width:98%;
    font-weight: bold;
    background-color: #777;
    color:#fff;
    padding: 5px;
}

.mpform_submit {
    cursor: pointer;
}
.mpform_submit:hover{
}

span.mpform_required {
    color:red;
}

span.mpform_small {
    font-size:9px;
}


.captcha input {
    background-color:#F4F4F4;
    border: 1px solid #CCCCCC;
}

.captcha .captcha_expl{
    font-weight:normal;
}

.mpform_a_img{
    border:0;
}
.mpform_img_help{
    border:0;
    width:16px;
    height:16px;
}

.mpform_help_box_td{
    border:1px solid #666666;
    padding:6px;
    background-color:#ffffff;
    color:#003366;
}

.mpform_help_box_div{
   background-color:#5587B1;
}

.mpform_help_box_hr {
    width:100%;
    margin: 5px 0 ;
    padding:0px;
}

h5.mpform_help_box_h5 {
    color:#fff;
    background-color:#5587B1;
    font-size:1.0em;
    font-weight:bold;
    margin:0;
    padding:5px;
}

.mpform_help_box_h6 {
    color:#003366;
    background-color:#ccf;
    font-size:1.0em;
    font-weight:normal;
    margin:0;
    padding:4px;
}

div.mpform_results {
    background-color: #cfc;
    border: 2px solid #090;
    padding: 6px;
}


/*** Don't remove the class nixhier, this is required for ASP ***/
.mpform_hiddenfield,
.nixhier {
    display:none;
}

/*** Popup box for displaying the help text ***/
.HelpDiv {
    display: none;
    position: fixed;
    z-index: 99;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.HelpDiv-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 65%;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


/*  deprecated definitions, only for forms created with mpform < 0.3.0
        mpform_td_help is now called mpform_help
*/

.mpform_td_help{
    width: 16px;
    vertical-align: top;
}



/* KGU mpform redesign 1.0 – replace modules/mpform/frontend.css.
   Original functional rules above retained (calendar, help, anti-spam).
   No changes to form fields or submission handling required. */
div.mpform {
  --mp-green: #0e4437;
  --mp-red: #a02824;
  background: transparent;
  color: inherit;
  font: inherit;
  width: 100%;
  min-width: 0;
}
div.mpform *, div.mpform *::before, div.mpform *::after { box-sizing: border-box; }
div.mpform p { margin: 0 0 1rem; padding: 0; line-height: 1.6; }
div.mpform form { margin: 0; }
div.mpform fieldset {
  width: 100%; min-width: 0; margin: 0 0 1.75rem;
  padding: 0; border: 0; background: transparent;
}
div.mpform legend {
  float: none; width: 100%; margin: 0 0 1rem; padding: 0;
  border: 0; background: transparent; color: inherit;
  font-size: 1.25rem; font-weight: 600;
}
div.mpform div.questionbox, div.mpform fieldset div.questionbox {
  float: none; clear: both; width: 100%; height: auto;
  margin: 0 0 .45rem; padding: 0; text-align: left;
}
div.mpform div.answerbox, div.mpform fieldset div.answerbox {
  float: none; width: 100%; height: auto;
  margin: 0 0 1.4rem; padding: 0; border: 0;
}
div.mpform .mpform_title {
  padding: 0 0 .45rem; color: inherit;
  background: transparent; font-weight: 600; text-align: left;
}
div.mpform .mpform_field {
  width: 100%; padding: 0 0 1.4rem; background: transparent;
}
div.mpform .questionbox label, div.mpform .mpform_title label {
  display: inline; font-weight: 600;
}
/* Legacy table-based field loop: stack only actual field cells. */
div.mpform table { width: 100%; max-width: 100%; }
div.mpform td.mpform_title, div.mpform td.mpform_field {
  display: block; width: 100%; border: 0;
}
div.mpform :is(input:not([type]),input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="password"],input[type="date"],input[type="search"],select,textarea) {
  display: block; width: 100%; max-width: 100%; min-height: 48px;
  margin: 0; padding: .75rem .9rem;
  border: 1px solid #aebbb6; border-radius: 3px;
  background: #fff; color: #263d35;
  font: inherit; font-size: 1rem; line-height: 1.5;
  box-shadow: none;
}
div.mpform select { padding-right: 2rem; }
div.mpform textarea { min-height: 170px; resize: vertical; }
div.mpform input::placeholder, div.mpform textarea::placeholder { color: #66746e; opacity: 1; }
div.mpform :is(input,select,textarea,button):focus-visible {
  outline: 3px solid #0e4437; outline-offset: 3px;
}
div.mpform :is(input,textarea)[readonly] { background: #edf0ee; }
div.mpform :is(input,select,textarea,button):disabled { opacity: .65; cursor: not-allowed; }
div.mpform input[type="checkbox"], div.mpform input[type="radio"] {
  display: inline-block; width: 1.2rem; height: 1.2rem;
  margin: .2rem .55rem .2rem 0; padding: 0;
  vertical-align: middle; accent-color: var(--mp-green);
}
div.mpform :is(.mpform_checkbox_label,.mpform_radio_label,.mpform_err_checkbox_label,.mpform_err_radio_label) {
  display: inline; font-weight: 400; line-height: 1.6;
}
div.mpform input[type="file"] { max-width: 100%; font: inherit; }
div.mpform input::file-selector-button {
  padding: .6rem .85rem; margin-right: .75rem; border: 1px solid #aebbb6;
  border-radius: 3px; background: #edf0ee; color: #0e4437; font: inherit;
}
div.mpform div.submitbox {
  float: none; clear: both; width: 100%; height: auto;
  margin: 1.25rem 0 0; padding: 0; text-align: left;
}
div.mpform :is(input[type="submit"],button[type="submit"],.mpform_submit), div.mpform div.submitbox input {
  width: auto; max-width: 100%; min-height: 48px; height: auto;
  margin: 0; padding: .8rem 1.5rem;
  border: 2px solid #0e4437; border-radius: 2px;
  background: #0e4437; color: #fff; box-shadow: none;
  font: inherit; font-weight: 600; line-height: 1.4;
  white-space: normal; cursor: pointer;
}
div.mpform :is(input[type="submit"],button[type="submit"],.mpform_submit):hover {
  background: #163d32; border-color: #163d32; color: #fff;
}
div.mpform span.mpform_required { color: var(--mp-red); font-weight: 700; }
div.mpform :is(.mpform_small,.help_txt) { font-size: .9rem; line-height: 1.5; color: inherit; }
div.mpform p.help_txt { margin: .5rem 0 0; }
div.mpform .mpform_heading {
  width: 100%; padding: 0; margin: 1.5rem 0 1rem;
  background: transparent; color: inherit; font-size: 1.25rem; font-weight: 600;
}
div.mpform :is(.mpform_error,.captcha_err) :is(.mpform_title,.mpform_field) { color: #a02824 !important; }
div.mpform :is(input,select,textarea)[class*="mpform_err_"],div.mpform .captcha_err input {
  border: 2px solid #a02824 !important; background: #fff8f7 !important; color: #57201d;
}
div.mpform :is(.mpform_err_radio_label,.mpform_err_checkbox_label,.mpform_err_select_label,.captcha_err) {
  background: transparent !important; border: 0 !important;
}
div.mpform_missing {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem;
  background: #fff1ef; border: 1px solid #a02824; border-left-width: 4px;
  color: #77201c; font-weight: 400; line-height: 1.6;
}
div.mpform_results {
  padding: 1.5rem; background: #edf4ef;
  border: 1px solid #8ba89a; border-left: 4px solid #0e4437; color: #0e4437;
}
div.mpform .captcha input { width: 10rem; max-width: 100%; }
div.mpform .captcha img { max-width: 100%; height: auto; }
div.mpform .mpform_date, div.mpform .mpform_err_date { display: inline-block; width: min(100%, 16rem); }
div.mpform .mpform_help { background: transparent; }
.HelpDiv .HelpDiv-content { width: min(90%, 640px); border-radius: 3px; }
/* Retain hidden anti-spam fields, including in stacked table layouts. */
.mpform_hiddenfield, .nixhier, div.mpform .mpform_hiddenfield, div.mpform .nixhier { display: none !important; }
@media (max-width: 575.98px) {
  div.mpform :is(input[type="submit"],button[type="submit"],.mpform_submit), div.mpform div.submitbox input { width: 100%; }
}
