/* Overlay background for modal */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* fades out main page */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal box */
.modal {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: relative;
}

.close-x {
  position: absolute;
  top: 15px; /* Adjust this value to control vertical position */
  right: 25px; /* Adjust this value to control horizontal position */
  font-size: 2rem;
  font-weight: bold;
  color: #ff0000;
  cursor: pointer; /* Changes the cursor to a pointer on hover */
  transition: color 0.2s ease-in-out;
}

/* Hidden state of modal */
.hidden {
  display: none;
}

.input-container {
  display: flex;
  gap: 1.0rem; /* Adds space between the input fields */
  width: 99%;
}

/* This makes sure the inquiry fields are stacked vertically within the flex container */
.inquiry-field {
  display: flex;
  flex-direction: column;
}

/* Styling for all input boxes */
input[type="text"] {
    /* Gives a subtle, rounded look */
    border-radius: 4px; 
    
    /* Makes the border a light, soft gray */
    border: 1px solid #ddd; 
    
    /* Adds some internal space so text isn't right against the edge */
    padding: 0.75rem; 
    
    /* Sets a clean font and ensures it's a good size */
    font-size: 1rem;
    font-family: inherit; 
    
    /* Removes the default outline that appears on click */
    outline: none; 
    
    /* A smooth transition for hover and focus effects */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Style for the input box when a user hovers over it */
input[type="text"]:hover {
    border-color: rgba(3, 8, 84, 0.3); /* Changes border to a lighter orange on hover */
}

/* Style for the input box when a user clicks into it */
input[type="text"]:focus {
    /* Changes border to a brighter orange */
    border-color: #e0f7ff; 
    
    /* Adds a subtle glow effect for better user experience */
    box-shadow: 0 0 0 3px rgba(94, 94, 255, 0.3);
}


  .inquiry-field {
      display: flex;
      flex-direction: column;
      flex: 1 1 100%;
  }

  .inquiry-field label {
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: #333;
  }

  .inquiry-field textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #00bfff;
    font-size: 1rem;
    background: #fafafa;
    font-family: inherit; /* Inherit the main font from the body */
    resize: vertical; /* Allow vertical resizing only */
    min-height: 150px;
  }

  .inquiry-field input[type="date"],
.inquiry-field input[type="time"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 1rem;
  background: #fafafa;
  font-family: inherit;
  color: #333;
  cursor: pointer;
}

.inquiry-field input[type="date"]:hover,
.inquiry-field input[type="time"]:hover {
  border-color: rgba(0, 191, 255, 0.4);
}

.inquiry-field input[type="date"]:focus,
.inquiry-field input[type="time"]:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
}

