/* Styles for the contact page */

.contact-main {
  padding-top: 120px; /* Space for the fixed header */
  padding-bottom: 60px;
  min-height: 100vh;
  background-color: var(--dark-background);
  background-image: radial-gradient(circle at 90% 10%, rgba(0, 191, 255, 0.1), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 191, 255, 0.05), transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--filter-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

/* New styles for icon positioning */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem; /* 12px */
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none; /* Make icon non-interactive */
}

/* For textarea, the icon should be at the top */
.input-icon.top-4 {
    top: 1rem; /* 16px */
    transform: translateY(0);
}

.contact-form .form-input {
  width: 100%;
  background-color: var(--input-bg, rgba(17, 24, 39, 0.8));
  border: 1px solid var(--gray-700);
  color: white;
  /* Adjust padding to make space for the icon */
  padding: 0.75rem 1rem 0.75rem 2.5rem; /* 40px left padding */
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

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

/* Style for disabled inputs */
.form-input:disabled {
    background-color: var(--gray-800);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
}

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

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

.submit-btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-main {
    padding-top: 100px;
    padding-bottom: 40px;
    align-items: flex-start;
  }
  .contact-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  .contact-header h1 {
    font-size: 2rem;
  }
  .contact-header p {
    font-size: 1rem;
  }
}
