/* .modal {
    position: absolute;
    top: 0px;
    display: none;
    width: 99vw;
    height: 100vh;
    z-index: 9999999;
    justify-content: center;
    align-items: center;    
    background-color: rgb(0, 0, 0);
    background-color: rgb(32 30 28 / 84%);
} */

.modal {
    position: fixed; /* Fixerar modalen i förhållande till viewporten */
    top: 50%; /* Centrerar vertikalt */
    left: 50%; /* Centrerar horisontellt */
    transform: translate(-50%, -50%); /* Justerar modalen för att exakt centrera */
    display: none; /* Döljer modalen som standard */
    width: 99vw; /* Bredden på modalen */
    height: 100vh; /* Höjden på modalen */
    z-index: 9999999; /* Ser till att modalen är ovanpå andra element */
    justify-content: center; /* Centrerar innehållet inuti modalen horisontellt */
    align-items: center; /* Centrerar innehållet inuti modalen vertikalt */
    background-color: rgb(32 30 28 / 84%); /* Bakgrundsfärg med genomskinlighet */
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    padding: 20px 20px;
    border: none;
    /* background-image: url("../img/form_background.png"); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-background-size: contain;
}

form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffffffd0; 
    width: 100%;
    max-width: 600px;
}

.formTitle {
    font-family: 'Crimson Text', serif;
    font-size: clamp(14px, 2vw, 2em) !important;
    margin: 10px;
}

.type-selection,
.regDemo {
    display: flex;
    flex-direction: row;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    width: 80%;
    background-color: #ffffff81;
    color: #00000082;
}

.regDemo label {
    margin-left: 20px;
    font-size: clamp(14px, 1.0vw, 1.3em) !important;
    color: #00000082;
}

.modal-content input[type="text"],
.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"] {
    width: 80%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff81;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(14px, 1.0vw, 1.3em) !important;
    color: #00000082;
}

.modal-content input[type="text"]::placeholder,
.modal-content input[type="tel"]::placeholder,
.modal-content input[type="email"]::placeholder {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(14px, 1.0vw, 1.3em) !important;
    color: #00000082;

}

.modal-content .buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.modal-content input[type="submit"] {
    min-width: 150px;
  background-color: var(--brickOrange);
  color: var(--pureWhite);
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 1.5em) !important;
  transition: background-color 0.3s ease;
}
.modal-content input[type="submit"]:hover {
    background-color: var(--brickOrangeHover);
}

.modal-content input[type="button"] {
  min-width: 150px;
  background-color: var(--cloudyGrey);
  color: var(--sphereBlue);
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 1.5em) !important;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

.empty-input {
  border:1px solid #FF4D00 !important;
}
.empty-input::placeholder {
  color: #FF4D00 !important;  
}

body.modal-open {
    overflow: hidden;
}

/* Message Modal styling */
#messageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.message-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

#messageOk {
    background-color: #002B49; /* Button background color */
    color: #fff; /* Text color */
    font-size: clamp(14px, 1.2vw, 1.5em) !important;
    /* ... rest of the styles ... */
}

#messageCancel {
    background-color: #E7E7E6; /* Button background color */
    color: #fff; /* Text color */
    font-size: clamp(14px, 1.2vw, 1.5em) !important;
    /* ... rest of the styles ... */
}

#messageOk, #messageCancel { 
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(14px, 1.2vw, 1.5em) !important;
    margin: 2px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    border-radius: 12px;
}

#messageCancel {
    background-color: #f44336;
}

#messageOk:hover, #messageCancel:hover {
    opacity: 0.8;
}

.message-modal-content.success {
    color: #002B49; /* success message color */
}

.message-modal-content.fail {
    color: #FF4D00; /* fail message color */
}

.empty-input {
    border: 1px solid red;
}