/* Contact Modal Styles
   Matches the contact form design from contact.html
   -------------------------------------------------- */

/* Modal container - hidden by default */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.contact-modal.active {
  display: flex;
}

/* Dark overlay */
.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}

/* Modal content box */
.contact-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px;
  border-radius: 0;
  border-bottom-right-radius: 80px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button */
.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: #938277;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.contact-modal-close:hover {
  color: #fe5812;
}

/* Modal header */
.contact-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-modal-header .modal-spark {
  max-width: 60px;
  margin-bottom: 15px;
}

.contact-modal-header h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: #343435;
  margin-bottom: 10px;
}

.contact-modal-header p {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #343435;
  margin: 0;
}

/* Form styles - matching contact.html */
.contact-modal-form .form-group .form-control {
  border: 1.66px dotted #938277;
  border-radius: 0;
  color: #938277;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 50px;
  height: auto;
  padding: 0 15px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.contact-modal-form .form-group .form-control:focus {
  outline: none;
  border-color: #fe5812;
  border-style: solid;
}

.contact-modal-form .form-group .form-control::placeholder {
  color: #938277;
  opacity: 1;
}

.contact-modal-form .form-group .submit {
  background: #fe5812;
  width: 100%;
  height: 56px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: 0;
  line-height: 1;
  text-align: center;
  color: #ffffff;
  border: 2px solid #fe5812;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.contact-modal-form .form-group .submit:hover {
  background: #fff;
  color: #fe5812;
  border-color: #fe5812;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .contact-modal-content {
    padding: 50px 60px;
  }

  .contact-modal-header h2 {
    font-size: 36px;
  }

  .contact-modal-header p {
    font-size: 18px;
    line-height: 28px;
  }

  .contact-modal-form .form-group .form-control {
    font-size: 20px;
    line-height: 60px;
    text-align: left;
    padding: 0 20px;
  }

  .contact-modal-form .form-group .submit {
    height: 66px;
    font-size: 20px;
  }
}

@media (min-width: 1440px) {
  .contact-modal-content {
    max-width: 700px;
    padding: 60px 80px;
  }

  .contact-modal-header h2 {
    font-size: 42px;
  }

  .contact-modal-header p {
    font-size: 20px;
    line-height: 32px;
  }

  .contact-modal-form .form-group .form-control {
    font-size: 22px;
    line-height: 70px;
  }

  .contact-modal-form .form-group .submit {
    height: 76px;
    font-size: 22px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .contact-modal-content {
    width: 95%;
    padding: 30px 20px;
    border-bottom-right-radius: 50px;
    max-height: 85vh;
  }

  .contact-modal-close {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }

  .contact-modal-header .modal-spark {
    max-width: 50px;
  }

  .contact-modal-header h2 {
    font-size: 24px;
  }

  .contact-modal-form .form-group .form-control {
    font-size: 16px;
    line-height: 46px;
  }

  .contact-modal-form .form-group .submit {
    height: 50px;
    font-size: 16px;
  }
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}
