.sidebar.open{
    width: 250px;
}

.sidebar.open .text{
    opacity: 100;
}

.sidebar.open .form{
    opacity: 100;
}

.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: 0px;
    height: 100%;
    padding-top: 10px;
    background: cornsilk;
    z-index: 1000;
}

.sidebar .text{
    opacity: 0;
}

.sidebar .form {
    opacity: 0;
}

.sidebar header{
    position: relative;

}

.sidebar header .toggle{
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    background: cornflowerblue;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rebeccapurple;
}

.map {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

/* Modal styles */
.modal.open {
  display: block;
  position: fixed;
  z-index: 1001;
  left: 50%;
  top: 40%;
  width: 30%;
  max-height: 50%;
  overflow: visible;
  background-color: var(--background-color);
  transform: translate(-50%, -50%);
  border-radius: 6%;
  border: 3px solid var(--primary-color);
}

.modal-content {
  padding: 20px;
}

.modal-content p {
  color: var(--primary-color);
  font-size: large;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: red;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transform: translate(30%, -30%);
  z-index: 1002; /* Higher than the modal's z-index of 1001 */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  padding: 0px;
  border: 2px solid var(--primary-color);
}

.close-btn:hover {
    background-color: darkred;
}

.close-btn::before {
  content: '×';
  display: block;
  transform: translate(7px, 2px);  /* Fine-tune vertical position */
}

.email-input {
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

label {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

