/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* --- Contact page --- */
.contact-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: #f8fafc;
}

.contact-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
}

.contact-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-card__subtitle {
  color: #6b7280;
}

.contact-card__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-errors {
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.375rem;
}

.contact-errors h2 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-errors ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e040a0;
  box-shadow: 0 0 0 3px rgba(224, 64, 160, 0.15);
}

.contact-submit {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #e040a0;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-submit:hover {
  background: #c03588;
}

/* --- Flash messages --- */
.flash-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
  width: calc(100% - 2rem);
}

.flash {
  padding: 0.875rem 1rem;
  border-radius: 0.375rem;
  text-align: center;
  font-weight: 500;
}

.flash--notice {
  background: #dcfce7;
  color: #166534;
}

.flash--alert {
  background: #fee2e2;
  color: #991b1b;
}
