
/* Modern Modal Styles */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.contact-modal-content {
  background-color: #00A784;
  margin: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
  transform: translateY(0);
}

/* Header Styles */
.contact-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact-modal-header h2 {
  color: #000000;
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-modal-header p {
  color: #ffffff;
  font-size: 15px;
}

/* Close Button */
.contact-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #95a5a6;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.contact-close-btn:hover {
  color: #e74c3c;
}

/* Form Layout */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 15px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

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

/* Button Styles */
.submit-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  width: 100%;
  position: relative;
}

.submit-btn:hover {
  background: #3e8e41;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
}

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

.submit-btn.loading .btn-text {
  visibility: hidden;
}

.submit-btn.loading .spinner {
  display: block;
}

/* Response Messages */
.form-response {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.form-response.success {
  background-color: #d4edda;
  color: #155724;
}

.form-response.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-modal-content {
    padding: 25px 20px;
  }
}
