/* static/css/contact.css */


.contact-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.contact-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.contact-hero-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section {
  padding: 3rem 0 6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-wrap h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-strong);
}

.form-subtitle {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #525252;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  background: var(--bg-card);
  color: var(--text);
}

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

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong);
}

.form-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.sidebar-card:hover {
  border-color: var(--border-light);
}

.sidebar-card--urgent {
  border-color: rgba(220,38,38,0.2);
  background: linear-gradient(180deg, rgba(220,38,38,0.04), transparent 60%);
}

.sidebar-card--urgent:hover {
  border-color: rgba(220,38,38,0.35);
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
}

.sidebar-card > p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list i {
  color: var(--text-muted);
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-list a:hover {
  color: var(--text-strong);
}

.sidebar-regions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-regions li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sidebar-regions li:last-child {
  border-bottom: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .contact-hero {
    padding: 7rem 0 3rem;
  }

  .contact-hero-content h1 {
    font-size: 2rem;
  }

  .contact-section {
    padding: 2rem 0 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.75rem;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-footer .btn {
    justify-content: center;
  }

  .form-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .contact-hero {
    padding: 6rem 0 2.5rem;
  }

  .contact-hero-content h1 {
    font-size: 1.75rem;
  }

  .contact-hero-content p {
    font-size: 1rem;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .sidebar-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-error i {
  font-size: 1rem;
  color: #ef4444;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
