/* Contact Modal Styles */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.hidden {
  display: none;
}

/* Modal Container */
.modal-container {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Modal Header */
.modal-header {
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.modal-header p {
  font-size: 0.875rem;
}

/* Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

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

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(to right, #7c3aed, #ec4899);
  color: white;
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.submit-button:active {
  transform: translateY(0);
}

/* Success Message */
.success-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  font-size: 0.8125rem;
}

.success-message.hidden {
  display: none;
}

/* Modal Footer */
.modal-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .modal-content {
    padding: 1.5rem;
  }

  .modal-header {
    padding-right: 2rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }
}

/* Animation */
.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
