.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  padding: 30px 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.4s ease-out;
  max-height: 90%;
  overflow-y: auto;
}

.modal-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

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

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

@keyframes fadeOut {
  from { opacity: 1 }
  to { opacity: 0 }
}

.modal .close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -10px;
}

.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
    line-height: 1;
  margin-top: -10px;
  margin-right: -10px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#contactForm label {
  font-weight: 500;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  background-color: #f9f9f9;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#contactForm button {
  margin-top: 10px;
  background-color: #111;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.25s ease;
}

#contactForm button:hover {
  background-color: #333;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

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