.contact-page {
  padding-top: 132px;
  padding-bottom: 4rem;
  background-color: var(--bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-header h1 span {
  color: var(--primary);
}

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

.contact-header a {
  color: var(--primary);
  text-decoration: none;
}

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

.contact-form-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

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

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-color: var(--text-muted);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  pointer-events: none;
}

.contact-form select {
  appearance: none;
  padding-right: 2.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.contact-alert.info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-form button[type="submit"] {
  width: 100%;
  justify-content: center;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success State */
.contact-success {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.contact-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-success p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
}
