/* Modern Hire Popup Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Prevent body scroll when popup is open */
body.popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.hire-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.hire-popup-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 1001;
  max-width: 450px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hire-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #e74c3c;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.hire-popup-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#hirePopupTitle {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.hire-popup-form .form-group {
  margin-bottom: 12px;
}

.hire-popup-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.hire-popup-form input,
.hire-popup-form textarea,
.hire-popup-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.hire-popup-form input:focus,
.hire-popup-form textarea:focus,
.hire-popup-form select:focus {
  border-color: #999;
  outline: none;
}

/* Custom select styling */
.hire-popup-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}


.hire-popup-form textarea {
  min-height: 80px;
  resize: none;
}

.gdpr-group {
  margin: 15px 0;
}

.gdpr-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
  font-weight: normal;
}

.gdpr-checkbox {
  width: 18px !important;
  height: 18px !important;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  flex-grow: 0;
}

.gdpr-text {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  font-weight: 400;
  display: block;
}

.hire-popup-submit {
  background: #e75c6b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
}

.arrow {
  margin-left: 8px;
  font-size: 20px;
  font-weight: bold;
}

.hire-popup-submit:hover {
  background: #d44637;
}
.hire-success {
  color: #2e8b57;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.07rem;
  text-align: center;
}
.hire-error {
  color: #e04a6a;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.07rem;
  text-align: center;
}
.hire-popup-form input[type="text"],
.hire-popup-form input[type="email"] {
  letter-spacing: 0.01em;
}
.hire-popup-form input[type="text"]::-webkit-input-placeholder,
.hire-popup-form input[type="email"]::-webkit-input-placeholder,
.hire-popup-form textarea::-webkit-input-placeholder {
  color: #b4b4b4;
  opacity: 1;
}
.hire-popup-form input[type="text"]::-moz-placeholder,
.hire-popup-form input[type="email"]::-moz-placeholder,
.hire-popup-form textarea::-moz-placeholder {
  color: #b4b4b4;
  opacity: 1;
}
.hire-popup-form input[type="text"]:-ms-input-placeholder,
.hire-popup-form input[type="email"]:-ms-input-placeholder,
.hire-popup-form textarea:-ms-input-placeholder {
  color: #b4b4b4;
  opacity: 1;
}
.hire-popup-form input[type="text"]::placeholder,
.hire-popup-form input[type="email"]::placeholder,
.hire-popup-form textarea::placeholder {
  color: #b4b4b4;
  opacity: 1;
}

/* iPhone SE and other small devices */
@media (max-width: 380px) {
  .hire-popup-modal {
    max-width: 95vw;
    max-height: 90vh;
    height: 90vh;
    padding: 15px;
    border-radius: 10px;
    margin: 0;
    top: 5vh;
    transform: translate(-50%, 0);
  }
  
  #hirePopupTitle {
    font-size: 18px;
    margin: 0 0 10px 0;
  }
  
  .hire-popup-form .form-group {
    margin-bottom: 8px;
  }
  
  .hire-popup-form label {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .hire-popup-form input,
  .hire-popup-form textarea,
  .hire-popup-form select {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .hire-popup-form textarea {
    min-height: 50px;
  }
  
  .gdpr-group {
    margin: 10px 0;
  }
  
  .gdpr-checkbox {
    width: 16px !important;
    height: 16px !important;
  }
  
  .gdpr-text {
    font-size: 11px;
  }
  
  .hire-popup-submit {
    padding: 10px 15px;
    font-size: 15px;
    margin-top: 10px;
  }
  
  .arrow {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hire-popup-modal {
    max-width: 92vw;
    padding: 18px;
    max-height: 90vh;
    height: auto;
    top: 5vh;
    transform: translate(-50%, 0);
    margin-bottom: 5vh;
  }
  
  #hirePopupTitle {
    font-size: 20px;
    margin: 0 0 12px 0;
  }
  
  .hire-popup-form .form-group {
    margin-bottom: 10px;
  }
  
  .hire-popup-form label {
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  .hire-popup-form input,
  .hire-popup-form textarea,
  .hire-popup-form select {
    padding: 9px 11px;
    font-size: 14px;
  }
  
  .hire-popup-form select {
    background-size: 14px;
    padding-right: 32px;
  }
  
  .hire-popup-form textarea {
    min-height: 60px;
  }
  
  .gdpr-group {
    margin: 12px 0;
  }
  
  .gdpr-checkbox {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px;
  }
  
  .gdpr-text {
    font-size: 11px;
  }
  
  .hire-popup-submit {
    padding: 11px 15px;
    font-size: 15px;
    margin-top: 12px;
  }
  
  .arrow {
    font-size: 18px;
    margin-left: 6px;
  }
}

/* iOS specific adjustments */
@supports (-webkit-touch-callout: none) {
  .hire-popup-modal {
    max-height: -webkit-fill-available;
  }
  
  @media (max-width: 600px) {
    .hire-popup-modal {
      position: fixed;
      top: 20px;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      max-height: none;
      height: calc(100vh - 40px);
      overflow-y: scroll;
    }
  }
}
