/* =========================================
   Kapcsolat oldal – elrendezés
   ========================================= */

.page-section {
  padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .page-section {
    padding: 4rem 0 5rem;
  }
}

.page-title {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.page-intro {
  max-width: 700px;
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
  color: #4b5563;
}

/* Két hasábos layout: bal oldalt elérhetőségek, jobb oldalt űrlap */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Dobozok (elérhetőség + űrlap) */

.contact-box {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
  .contact-box {
    padding: 1.7rem 1.6rem;
  }
}

.contact-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.contact-box p {
  margin-bottom: 0.75rem;
}

/* Elérhetőségek lista */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #374151;
  font-size: 0.95rem;
}

.contact-list strong {
  font-weight: 600;
}

.contact-list a {
  color: #1d4ed8;
  text-decoration: none;
}

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

.contact-extra {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* BAL OLDALI DOBOZ – egységes betűméret */
.contact-box--details .contact-extra h3,
.contact-box--details .contact-extra p {
  font-size: 0.95rem;
  color: #374151;
}

.contact-extra h3 {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-opening-alert {
  color: #b91c1c !important;
  font-weight: 700;
}

.contact-opening-hours {
  display: grid;
  gap: 0.25rem;
  margin: 0.35rem 0 0.85rem;
}

.contact-opening-hours__row {
  display: grid;
  grid-template-columns: 4.5rem auto;
  column-gap: 0.75rem;
  align-items: baseline;
}

.contact-opening-note {
  margin: 0.35rem 0 0.85rem;
}

/* =========================================
   Kapcsolati űrlap
   ========================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
}

.contact-form label span[aria-hidden="true"] {
  color: #dc2626;
  margin-left: 0.15rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: #111827;
  background-color: #ffffff;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Adatkezelési checkbox */

.form-row--checkbox {
  margin-top: 0.4rem;
}

.form-row--checkbox label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #374151;
}

.form-row--checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
}

/* Gomb */

.contact-form .form-actions {
  margin-top: 1.1rem;
}

.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #111827, #374151);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
  transition:
    background 120ms ease,
    transform 80ms ease,
    box-shadow 80ms ease;
}

.contact-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.5);
}

.contact-form button[type="submit"]:active {
  background: linear-gradient(135deg, #020617, #111827);
  transform: translateY(1px);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.4);
}

/* =========================================
   Térkép blokk
   ========================================= */

.contact-map {
  margin-top: 3rem;
}

.contact-map h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.contact-map p {
  max-width: 700px;
  color: #4b5563;
  margin-bottom: 0.9rem;
}

.map-embed {
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #e5e7eb;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* =========================================
   Mobil finomhangolás
   ========================================= */

@media (max-width: 640px) {
  .page-section {
    padding: 2.4rem 0 3rem;
  }

  .page-title {
    text-align: left;
  }

  .page-intro {
    font-size: 0.95rem;
  }

  .contact-layout {
    width: 100%;
  }

  .contact-box {
    width: 100%;
    padding: 1.15rem;
  }
}

.form-error {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #b91c1c;
}

.contact-notice {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  margin: 0 0 1rem;
  font-weight: 600;
}

.contact-notice--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.contact-notice--success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* Kapcsolati űrlap – ÁSZF + Adatkezelés linkek a checkboxnál */
.form-row--checkbox a,
.form-row--checkbox a:visited {
  color: #0077ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-row--checkbox a:hover {
  color: #53a3ff;
}

.contact-route {
    margin: 14px 0 18px;
}

.contact-route-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-route-btn:hover {
    background: #16306f;
    transform: translateY(-1px);
}