#loading {
    top: 0;
    left: 0;
    padding: 0px;
    margin: 0px;
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 0px solid black;
}

* {
    box-sizing: border-box;
}

form {
    display: contents;
}

body {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    background-color: var(--smartforms-background-color);
    padding: 20px;
    color: var(--smartforms-text-color);
}


.section-title {
    background-color: transparent;
    color: var(--smartforms-text-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px 20px;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.form-container {
    border: 0px solid #ccc;
    display: flex;
    width: 90%;
    margin: 0 auto;
    min-height: 120px;
}

/* INDEX */
.form-list-box {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: nowrap;
    border: var(--smartforms-box-border, 2px solid black);
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--smartforms-box-background-color);
    border-radius: 5px;
    margin: 0 auto;
    margin-top: 20px;
    transition: background-color 0.3s;
    cursor: pointer;
    color: var(--smartforms-box-text-color);
    min-height: 130px;
}

.form-list-box:hover {
    background-color: var(--smartforms-box-background-color-hover);
    color: var(--smartforms-box-text-color-hover);
}

.form-image-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0px;
    border: 0px solid #ccc;
    padding: 0px;
    cursor: auto;
    color: inherit;
    min-width: 85px;
    min-height: 85px;
}

.form-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-word;
}

.form-description {
    font-size: 1.1rem;
    word-break: break-word;
}

/* SUBMISSION VIEW */
.submission-section-box {
    border: 2px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    width: 60%;
    margin: 0 auto;
    margin-top: 20px;
    transition: background-color 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    @media screen and (max-width: 1300px) {
        width: 100%;
     }
}

.submission-instructions {
    margin: 5px;
    margin-bottom: 20px;
}

.submission-section-box .left-align {
    text-align: left;
    align-self: flex-start;
}

.submission-pdf-preview-page {
    max-width: 100%;
    margin-bottom: 5px;
    border: 1px solid black;
    background-color: inherit;
}

.button-grid {
  display: grid;
  gap: 5rem;
  justify-content: space-around;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  width: 100%;
  margin: 0 auto;
 }

.submission-action-button {
  display: flex;
  width: 100%;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  background-color: var(--smartforms-button-background-color);
  color: var(--smartforms-button-text-color);
  border: 2px solid var(--smartforms-button-border-color);
  border-radius: 9px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.2rem;
  padding: 5px;
  padding-right: 20px;
  text-align: center;
}


.submission-action-button:not(:disabled):hover {
  background-color: var(--smartforms-button-background-color-hover);
  color: var(--smartforms-button-text-color-hover);
  transform: scale(1.02);
  cursor: pointer;
}

.submission-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.submission-action-button img {
  width: 3rem;
  vertical-align: middle; /* Align image with text */
  margin: 0px;
  padding-left: 0px;
}

.gohome-action-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: var(--smartforms-button-background-color);
  color: var(--smartforms-button-text-color);
  border: 1px solid var(--smartforms-button-border-color);
  border-radius: 9px;
  padding: 10px;
  text-align: center;
}

.gohome-action-button img {
  width: 2.2rem;
  margin: 0px;
  margin-left: 10px;
  margin-right: 10px;
}

.gohome-action-button p {
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  flex-grow: 1;
  margin: 0;
}

/* FORM VIEW */
.form-view-title-bar {
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    background-color: var(--smartforms-h1-background-color);
    padding: 0px;
    max-width: 90%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

.form-view-title {
    background-color: var(--smartforms-h1-background-color);
    color: var(--smartforms-h1-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px 0px;
    text-align: center;
    height: 100%;
    align-content: center;
}

.form-view-title-bar .left-image  {
    flex: 0 0 60px;
    border: 0px solid #ccc;
    margin-right: 25px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px;
    align-items: flex-start;
}

.form-view-title-bar .right-image  {
    flex: 0 0 60px;
    border: 0px solid #ccc;
    margin-left: 25px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px;
}

.form-section-box {
    border: var(--smartforms-forms-section-border, 2px solid #ccc);
    padding: 15px;
    border-radius: 5px;
    background-color: var(--smartforms-forms-background-color);
    color: var(--smartforms-forms-section-title-text-color);
    max-width: 90%;
    margin: 0 auto;
    margin-top: 20px;
    transition: background-color 0.5s;
}

.form-section-box:hover {
    background-color: var(--smartforms-forms-background-color-hover);
}



.form-section-box .nice-form-group textarea
 {
    resize: vertical;
}


select option {
    font-size: 1.3rem;
}

.simple-button {
  background-color: transparent;
  color: black;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  padding: 10px 12px;
  margin-top: 25px;
  display: flex;
  align-items: center;
}

.simple-button:not(:disabled):hover {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.4s ease;
}

.simple-button:disabled {
  /*cursor: not-allowed;*/
  opacity: 0.7;
}

.simple-button img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.info-bar {
  width: 100%;
  color: var(--smartforms-text-color);
  border: 2px dotted var(--smartforms-button-background-color);;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2rem;
  padding: 12px 22px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.submit-button {
  width: 100%;
  background-color: var(--smartforms-button-background-color);
  color: var(--smartforms-button-text-color);
  border: 2px solid #ccc;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.3rem;
  padding: 12px 22px;
  margin-top: 20px;
}

.submit-button:hover {
  cursor: pointer;
  color: var(--smartforms-button-text-color-hover);
  background-color: var(--smartforms-button-background-color-hover);
}

/* Apply styles to the error container */
.error-container {
    text-align: center;
    margin-top: 100px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style the heading */
.error-container h1 {
    color: #ff0000; /* Red color for the heading */
}

/* Style the paragraphs */
.error-container p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 15px;
}

/* Add some spacing to the top */
.error-container p:first-child {
    margin-top: 0;
}


/* Common styles */

.max-width {
    width: 100%;
}

.cursor-wait:hover {
    cursor: wait;
}


.transparent-background {
    background-color: inherit;
    color: var(--smartforms-forms-info-text-color);
    border: 0px;
    padding: 0px;
}

.transparent-background:hover {
    background-color: inherit;
}


.info-background {
    background-color: var(--smartforms-forms-info-background-color);
    color: var(--smartforms-forms-info-text-color);
    border: 1px solid #ccc;
    padding: 1.2rem;
}

.info-background:hover {
    background-color: var(--info-background-color);
}

.info-background a {
    color: var(--smartforms-forms-hyperlink-color);
    text-decoration: underline;
}

.autocomplete-list {
    background-color: var(--info-background-color);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.autocomplete-item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 6px;
    margin-bottom: 15px;
}

.section-toggle {
    overflow: visible;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

.section-toggle.showing {
    /* max-height default value - will be overridden by JS */
    max-height: 1000px;
    display: block;
    opacity: 1;
}

.hidden {
    display: none;
}

/* NICE FORMS */

.nice-form-group {
    --nf-input-color: var(--smartforms-forms-text-color);
    --nf-valid-input-color: var(--smartforms-forms-text-color);
    --nf-label-color: var(--smartforms-forms-label-color);
    --nf-input-background-color: var(--smartforms-input-background-color);
    /*  we dont use -nf-input-focus-border-color as this also rewrites checkbox background color */
    /*--nf-input-focus-border-color: var(--smartforms-input-focus-border-color);*/
    --nf-invalid-input-border-bottom-color: var(--smartforms-required-field-color);
}


/* Nice forms are considered invalid only when placeholder is not set - we want to change this behaviour */
.nice-form-group input[type="text"]:required:not([readonly]),
.nice-form-group input[type="number"]:required:not([readonly]),
.nice-form-group input[type="email"]:required:not([readonly]),
.nice-form-group input[type="tel"]:required:not([readonly]),
.nice-form-group input[type="search"]:required:not([readonly]),
.nice-form-group select:required:not([readonly]),
.nice-form-group textarea:required:not([readonly]) {
    border-bottom: 2px solid var(--smartforms-required-field-color);
    height: auto;
}

/* We only change focus border color for inputs - we dont use -nf-input-focus-border-color as this also rewrites checkbox background color */
.nice-form-group input[type="text"]:focus,
.nice-form-group input[type="number"]:focus,
.nice-form-group input[type="email"]:focus,
.nice-form-group input[type="tel"]:focus,
.nice-form-group input[type="search"]:focus,
.nice-form-group textarea:focus {
    border-color: var(--smartforms-input-focus-border-color);
}


.nice-form-group input[type="checkbox"]:invalid:not(.switch) {
    border-bottom: 2px solid var(--smartforms-required-field-color) !important;
}

.nice-form-group input[type="checkbox"]:not(.switch) {
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
}