/* Force all contact form text to #3d1119 */
.contact-form, .contact-form *, .contact-form label, .contact-form-title, .contact-label, .contact-form input, .contact-form textarea, .contact-btn, .contact-form button[type="submit"], .contact-form-msg {
  color: #3d1119 !important;
}
/* Contact background overlay */
.contact-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('contactbackground.jpg') center center/cover no-repeat;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  overflow-y: auto;
}
.contact-bg-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.contact-bg-overlay .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Center overlay content with flex */
.contact-form {
  background: #fffbee !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
  padding: 32px 24px 24px 24px !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.contact-form-title {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  color: #222;
  font-family: inherit;
  font-size: 2rem;
  letter-spacing: 1px;
}
.contact-label {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 2px;
  margin-top: 8px;
  font-family: inherit;
}
.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid #b97a56;
  font-size: 1.08rem;
  padding: 6px 2px 4px 2px;
  margin-bottom: 2px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-input:focus {
  border-bottom: 2.5px solid #c0392b;
}
.contact-textarea {
  min-height: 60px;
  resize: vertical;
}
.contact-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: none;
  text-decoration: none;
  color: #f6bad6;
  background: #3d1119;
  border: none;
  border-radius: 54px;
  padding: 28px 35px;
  min-height: 40px;
  font-size: clamp(12px, 1.8vh, 14px);
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 18px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, transform 0.1s;
  text-transform: none;
}
.contact-btn:hover {
  background: #2a0b12;
  transform: scale(1.04);
}
.contact-form-msg {
  margin-top: 12px;
  text-align: center;
  font-size: 1rem;
  color: #27ae60;
  display: none;
}
/* Hand-drawn underline effect */
/* Contact form styling: center, no box, only lines */
.contact-form label {
  align-self: flex-start;
  margin-bottom: 4px;
  color: #222;
  font-size: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0;
  margin-bottom: 22px;
  padding: 10px 4px 8px 4px;
  font-size: 1rem;
  color: #222;
  outline: none;
  border-radius: 0;
  transition: box-shadow 0.2s;
  box-shadow: 0 8px 0 0 transparent;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 8px;
  background-image: url('Line1.jpg');
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 8px 0 0 #f6bad6;
}
.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
}
.contact-form button[type="submit"] {
  text-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff !important;
  background: #3d1119;
  border: none;
  border-radius: 54px;
  padding: 28px 35px;
  min-height: 40px;
  font-size: clamp(12px, 1.8vh, 14px);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 0;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.contact-form button[type="submit"]:hover {
  background: #f6bad6;
  color: #3d1119;
}
.contact-form #contactFormMsg {
  margin-top: 12px;
  text-align: center;
  font-size: 1rem;
  color: #27ae60;
  display: none;
}
.contact-input, .contact-input:focus {
  border-bottom: 2.5px solid #b97a56;
  box-shadow: 0 2px 0 0 #e2c7b7, 0 4px 0 0 #fff, 0 6px 0 0 #b97a56;
}

@media (max-width: 600px) {
  .contact-bg-overlay {
    background: url('contactbackgroundmobil.jpg') center center/cover no-repeat;
  }
}