/* ── Estilos específicos da páxina de comentarios ── */

.page-contact main {
  padding-bottom: 120px;
}

/* Hero */
.contact-hero {
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.contact-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  color: var(--brand);
  line-height: 1.15;
}

.contact-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  max-width: 70ch;
  font-size: 15px;
}

/* Layout dos dous bloques */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

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

/* ── Formulario ── */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px 24px;
  position: relative;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #073349, #82959D);
}

.contact-form-card h2 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 300;
  color: var(--brand);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-field.span-2 {
    grid-column: span 1;
  }
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.form-field label .req {
  color: #c0392b;
  margin-left: 2px;
}

.form-field .input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  resize: none;
}

.form-field .input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(130, 149, 157, .65);
  box-shadow: 0 0 0 3px rgba(130, 149, 157, .18);
}

.form-field textarea {
  min-height: 140px;
  line-height: 1.55;
}

.form-field .field-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.form-field.has-error .input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #c0392b;
}

.form-field .field-error {
  font-size: 11px;
  color: #c0392b;
  font-weight: 400;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

/* Checkbox de privacidade */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.privacy-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.privacy-check a {
  color: var(--brand);
  font-weight: 700;
}

/* Botón enviar */
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-submit {
  appearance: none;
  border: none;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 0;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.btn-submit:hover {
  filter: brightness(.88);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Mensaxe de éxito */
#successMsg {
  display: none;
  padding: 18px 20px;
  background: rgba(0, 140, 80, .07);
  border: 1px solid rgba(0, 140, 80, .28);
  color: #0a5430;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 16px;
}

#successMsg strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Mensaxe de erro de envío */
#sendError {
  display: none;
  padding: 14px 16px;
  background: rgba(192, 57, 43, .07);
  border: 1px solid rgba(192, 57, 43, .28);
  color: #7a1a10;
  font-size: 13px;
  margin-top: 12px;
}

/* ── Aside informativo ── */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 16px;
}

.info-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand);
}

.info-block p,
.info-block address {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.info-block a {
  color: var(--brand);
  font-weight: 700;
}

.info-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.info-icon-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 14px;
}

.info-icon-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.info-icon-text strong {
  font-weight: 700;
  color: var(--brand);
  font-size: 13px;
}

/* Nota legal */
.legal-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
}

.legal-note a {
  color: var(--brand);
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--brand);
  font-weight: 700;
}