body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #494949;
        color: #f5f5f5;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    padding: 0.5rem;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

.displayFlex {
    display: flex;
}

.marginLeftRightAuto {
    display: block;
    margin: 0 auto;
}

.centeredContent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.allContent {
    margin: 0.5rem 1rem;
}

.toLeftContent {
    display: flex;
    justify-content: left;
    align-items: center;
}

.width100 {
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
}

h2, h3 {
    color: rgb(98 89 75);
    font-weight: 400;
    font-family: "Quattrocento", serif;
    text-align: center;
}

form h2, form h3 {
    margin-top: 4rem;
}

textarea {
    height: 200px;
}

.textAlignRight {
    text-align: right;
}

.header {
    padding: 1rem 2rem 4rem 2rem;
    display: flex;
    text-align: right;
}

@media (prefers-color-scheme: dark) {
    .header {
        background-color: white;
        color: #222;
    }
}

.header h2, .header h3{
    text-align: right;
}

@media only screen and (max-width: 600px) {
    .header h2, .header h3 {
        text-align: center;
    }
} 

.image-container {
    width: 65%;
    text-align: left;
}

@media only screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .image-container {
      text-align: center;
      width: 100%;
    }
    
} 

.inputSection {
    margin: 0.75rem 0;
    gap: 0.5rem;
}

.inputSection--checkboxes input {
    width: 1.5rem;
    height: 1.5rem;
}

.inputSection--checkboxes label {
    margin: 0;
}

.inputSection--twoComponents {
    display: flex;
}

.inputSectionHalf {
    width: 50%;
}

.inputSectionHalf:first-child input {
    width: 95%;
}

@media only screen and (max-width: 600px) {
    .inputSection--twoComponents {
      display: block;
    }

    .inputSectionHalf {
        width: 100%;
    }

    .inputSectionHalf:first-child input {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
} 

.form {
    display: block;
    margin: 5rem auto;
    padding: 3rem;
    width: 75%;
    background-color: rgb(212 211 207);
    box-sizing: border-box;
    color: #222;
}

@media only screen and (max-width: 600px) {
    .form {
      width: 100%;
      padding: 1.5rem;
    }
    
} 

@media only screen and (min-width: 1400px) {
    .form {
      width: 67%;
    }
    
} 


.InformationContent {
    font-family: "Quattrocento", serif;
    display: block;
    margin: 0 auto;
    width: 75%;
    padding-top: 5rem;
}

.InformationContentContent {
    margin: 2rem auto;
}

@media only screen and (max-width: 600px) {
    .InformationContent {
      width: 90%;
    }
    
} 

@media only screen and (min-width: 1400px) {
    .InformationContent {
      width: 67%;
    }
    
} 

.InformationContentTitle {
    font-weight: 400;
    margin-bottom: 2rem;
}

.darkline {
    width: 100%;
    height: 1px;
    background-color: rgb(212 211 207);
    display: block;
    margin: 0 auto;
}

#errorMessage {
    color: red;
}

#signaturePad {
    width: 300px;
    height: 150px;
    border: 1px solid #000;
    cursor: crosshair;
    touch-action: none; /* Prevent default scrolling behavior */
}

#signatureModal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 1000;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

#signatureDisplay {
    width: 300px;
    height: 150px;
    border: 1px dashed #aaa;
    cursor: pointer;
}

.btn {
    padding: 10px;
    border: none;
    background-color: #007BFF;
    color: #FFF;
    cursor: pointer;
    margin-top: 10px;
}

footer {
    background-color: rgb(230 230 230);
    padding: 2rem 1rem;
    color: #222;
}

.footerInfo {
    text-align: center;
    padding: 2rem 0;
    font-weight: 200;
    font-family: "Open Sans", sans-serif;
}

.errorMessage {
    width: 100%;
    margin: 2rem 0;
    padding: 3rem 0;
    text-align: center;
  }

.error {
    color: red;
}

  #informationOnPostalCode {
    padding: 2rem;
    text-align: center;
  }

  .addButton {
    border : none;
    border-radius: 1rem;
    background: white;
    height: 1.5rem;
    width: 1.5rem;
  }

  #sendbutton {
    width: 75%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;  
  }

  #sendbutton:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .sendbutton {
    position: relative;
  }

  .sendbutton .tooltip {
    display: none;
    position: absolute;
    top: -35px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
  }
  
  .sendbutton:hover .tooltip {
    display: block;
  }

  .print-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
    border-radius: 4px;
  }

  .print-button:hover {
    background-color: #324633;
  }

  @media print {
    .print-button {
      display: none;
    }
  }