/* CONTACT FORM */

.help-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
  color: white;
}

.help-icon::after {
  content: attr(data-help);
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #0A4A8A;
  border: 1px solid #ccc;
  padding: 5px;
  width: 200px;
  z-index: 998;
  display: none;
  border-radius: 10px;
  text-align: center;
}

.help-icon:hover::after {
  display: block;
}

.input-spinner::-webkit-outer-spin-button,
.input-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-spinner {
  -moz-appearance: textfield;
}

.spinner button {
  font-size: 20px;
  border-radius: 75px;
  width: 50px;
  min-width: 50px;
  font-weight: bold;
}

.spinner-controls {
  display: flex;
  align-items: center;
  padding-right: 15px;
  justify-content: flex-end;
  flex-grow: 1;
}

.spinner-label {
  margin-right: 20px;
  max-width: 250px;
  min-width: 200px;
  font-size: 16px;
}

.spinner {
  display: flex;
  justify-content: left;
  align-items: center;
}

.input-spinner {
  max-width: 60px;
  width: auto;
  text-align: center;
}

#tips {
  width: 15px;
  z-index: 800;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 20px;
  min-width: 355px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: 10px 10px 20px rgba(136, 136, 136, 0.8);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  text-align: left;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: #0A4A8A;
}

.contact-form button,
.popup-button,
.forsale-button {
  padding: 10px 20px;
  background-color: #0A4A8A;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  border-radius: 20px;
}

.contact-form button:hover, 
.popup-button:hover,
.forsale-button:hover {
  background-color: #0056b3;
}

.date-pickers {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.date-picker {
  flex: 1;
  min-width: 0;
}

.contact-form label,
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-size: max(12px, min(calc(12px + 0.5vw), 16px));
}

.res-info {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  min-width: 290px;
  box-sizing: border-box;
}

.res-info h3 {
  word-wrap: break-word;
}

.captcha-container {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.g-recaptcha {
  display: inline-block;
}

.formPagePopup {
  max-height: 70vh;
  overflow: auto;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  position: fixed;
  display: none;
  padding: 20px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.formPagePopup.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.overlay.visible {
  opacity: 1;
}
