/* Contact Popup Modal Styles */

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 26, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.popup-container {
  background: linear-gradient(135deg, #05051a 0%, #04193f 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 128, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: all 0.3s ease;
}

.popup-overlay.active .popup-container {
  transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.popup-close:active {
  transform: scale(0.95);
}

/* Popup Content */
.popup-content {
  padding: 40px 40px 40px 40px;
}

/* Header Section */
.popup-header {
  text-align: center;
  margin-bottom: 32px;
}

.popup-title {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.popup-subtitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.form-input,
.form-textarea {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0080ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.form-submit-wrapper {
  margin-top: 8px;
}

.contact-popup .primary-button {
  background: linear-gradient(135deg, #0080ff 0%, #667eea 100%);
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

.contact-popup .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 128, 255, 0.3);
}

.contact-popup .primary-button:active {
  transform: translateY(0);
}

.primary-button-text-wrap {
  position: relative;
  overflow: hidden;
  height: 24px;
}

.primary-button-text-block {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  line-height: 24px;
}

.primary-button-text-block.is-text-absolute {
  transform: translateY(100%);
}

.contact-popup .primary-button:hover .primary-button-text-block:not(.is-text-absolute) {
  transform: translateY(-100%);
}

.contact-popup .primary-button:hover .primary-button-text-block.is-text-absolute {
  transform: translateY(0);
}

/* Form States */
.form-loading,
.form-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}

.form-loading {
  background: rgba(255, 214, 89, 0.1);
  border: 1px solid rgba(255, 214, 89, 0.3);
  color: #ffd659;
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Loading Spinner */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #ffd659;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup-content {
    padding: 32px 24px;
  }

  .popup-title {
    font-size: 28px;
  }

  .popup-subtitle {
    font-size: 14px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .popup-container {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 24px 20px;
  }

  .popup-title {
    font-size: 24px;
  }

  .contact-form {
    gap: 20px;
  }

  .contact-popup .primary-button {
    padding: 16px 24px;
  }
}