/* ==========================================================================
   Kontakt & Anfahrt (pages/kontakt.php) Styles
   SV Fortuna Schneidlingen 1919 e.V.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Contact Page Hero
   -------------------------------------------------------------------------- */
.contact-page-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.contact-page-hero h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.contact-page-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 760px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Main Grid & Quick Contact Panels
   -------------------------------------------------------------------------- */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-info-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(61, 47, 134, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin: 0;
  font-weight: 700;
}

.contact-info-card p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.contact-panel-sub {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
}

.leadership-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.leadership-item {
  border-bottom: 1px solid var(--theme-border-divider);
  padding-bottom: 0.5rem;
}

.leadership-item-last {
  padding-bottom: 0;
}

.leadership-name {
  color: var(--theme-text-main);
  display: block;
  font-weight: 700;
}

.leadership-role {
  color: var(--theme-text-muted);
  font-size: 0.85rem;
}

/* WhatsApp Channel Highlight Card */
.contact-info-card.whatsapp-channel-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.25) !important;
}

.contact-info-card.whatsapp-channel-card .contact-info-icon,
.whatsapp-channel-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: none !important;
}

.contact-info-card.whatsapp-channel-card h3,
.whatsapp-channel-title {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.contact-info-card.whatsapp-channel-card .whatsapp-channel-sub {
  font-size: 0.85rem !important;
  color: #a7f3d0 !important;
  display: block;
  margin-top: 2px;
}

.contact-info-card.whatsapp-channel-card p,
.whatsapp-channel-text {
  color: #ecfdf5 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  margin-bottom: 1.2rem !important;
}

.whatsapp-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff !important;
  color: #064e3b !important;
  padding: 0.75rem 1.4rem;
  border-radius: 25px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-channel-btn:hover {
  transform: translateY(-2px);
  background: #f0fdf4 !important;
  color: #047857 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   3. Interactive Contact Form & Field Controls
   -------------------------------------------------------------------------- */
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid rgba(61, 47, 134, 0.12);
  padding: 2.8rem 2.4rem;
  box-shadow: 0 16px 45px rgba(61, 47, 134, 0.08);
}

.form-badge-preset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61, 47, 134, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.form-headline {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.form-subtitle {
  color: var(--theme-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

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

#team-container {
  display: none;
}

.form-group-spaced {
  margin-bottom: 1.25rem;
}

.form-label-bold {
  font-weight: 700;
  color: var(--theme-text-main);
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  display: block;
  padding: 0.85rem 1.15rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--theme-text-main);
  background-color: var(--theme-bg-surface-subtle);
  border: 1.5px solid var(--theme-border-card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  background-color: var(--theme-bg-surface);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(61, 47, 134, 0.15);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233D2F86'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.3rem;
  padding-right: 2.8rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 125px;
  font-family: inherit;
}

.form-team-note {
  display: block;
  font-size: 0.82rem;
  color: var(--theme-text-muted);
  margin-top: 4px;
}

.form-check-dsgVO {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.form-check-dsgvo-input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.form-check-dsgvo-label {
  font-size: 0.88rem;
  color: var(--theme-text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form-requirements-box {
  background: var(--theme-bg-surface-subtle);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  text-align: center;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit-contact {
  width: 100%;
  border-radius: 30px;
  font-weight: 800;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 6px 22px rgba(61, 47, 134, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.form-control.input-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

.form-control.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.field-hint {
  display: none;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 600;
}

.field-hint.show-error {
  display: block;
  color: #dc2626;
}

.submit-wrapper {
  transition: all 0.35s ease;
}

.btn-submit-hidden {
  display: none !important;
}

.btn-submit-active {
  display: flex !important;
  animation: fadeInButton 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.honeypot-field {
  display: none !important;
}

.turnstile-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-start;
  min-height: 65px;
}

/* AJAX Feedback Alerts */
.ajax-alert {
  display: none;
  padding: 1.4rem 1.8rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
  animation: fadeInAlert 0.4s ease;
}

.ajax-alert.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.ajax-alert.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.ajax-feedback-icon-success {
  font-size: 2.2rem;
  color: #10b981;
  display: block;
  margin-bottom: 0.5rem;
}

.ajax-feedback-icon-error {
  font-size: 1.3rem;
  margin-right: 0.4rem;
}

@keyframes fadeInButton {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   4. Responsive Contact Styles
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 2rem 1.4rem;
  }
}

@media (max-width: 640px) {
  .form-row.grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
