.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.contact-page .container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-page .contact-card {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 25px 30px;
  margin-bottom: 30px;
  width: 100%;
}

.contact-page .contact-card h1 {
  color: #f1f1f1;
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.contact-page .contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-page .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.contact-page .form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
}

.contact-page .form-group label::after {
  content: "*";
  color: #e74c3c;
  margin-left: 4px;
}

.contact-page .form-group input,
.contact-page .form-group select,
.contact-page .form-group textarea {
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  background: #2a2a2a;
  color: #f1f1f1;
  transition: all 0.3s ease;
  -webkit-appearance: auto;
  appearance: auto;
}

.contact-page .form-group input:focus,
.contact-page .form-group select:focus,
.contact-page .form-group textarea:focus {
  border-color: #009FDE;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.contact-page .form-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px black inset !important; 
  -webkit-text-fill-color: white !important;
  caret-color: white; 
}

.contact-page .form-group textarea {
  min-height: 95px;
  resize: vertical;
}

.contact-page button {
  background: #009FDE;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.contact-page button:hover {
  background: #2980b9;
}

.contact-page button:disabled {
  background: #555;
  cursor: not-allowed;
}

.contact-page .fa-spinner {
  animation: spin 1s linear infinite;
  margin-right: 5px;
}

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

.contact-page .contact-email {
  text-align: center;
  color: #aaa;
  font-size: 16px;
}

.contact-page .contact-email a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.contact-page .contact-email a:hover {
  text-decoration: underline;
}

.contact-page .message {
  position: fixed;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-page .message.success {
  background-color: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.contact-page .message.error {
  background-color: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}

.contact-page .message i {
  margin-right: 2px;
}

@media (max-width: 768px) {
  .contact-page .message {
    width: 88%;
  }

  .contact-page .contact-card {
    padding: 25px;
  }
}