/* Contact page specific rules (typography and variables defined globally in css/style.css) */
.cat-hero {
  position: relative;
  background: #ffffff;
  padding: 14rem 0 0.5rem;
  text-align: center;
}

.cat-hero__content {
  position: relative;
  z-index: 2;
}

.cat-hero__content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.cat-accent {
  color: #0073C0;
  background: linear-gradient(90deg, #0073C0, #29A9E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero__content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #4A5568;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.contact-hero h1 {
  padding-top: 150px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #001A33;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.contact-accent {
  color: #00B4D8;
  background: #00B4D8;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Contact info visuals consolidated later in file */
.contact-info h3 {
  margin-bottom: 1.2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.info-item i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  background: #ffffff;
  border-radius: 10px;
  flex: 0 0 44px;
  border: 2px solid var(--primary-100);
  box-shadow: 0 6px 18px rgba(7, 22, 46, 0.04);
}

.info-item i.fa-phone-alt,
.info-item i.fa-whatsapp,
.info-item i.fa-envelope,
.info-item i.fa-map-marker-alt,
.info-item i.fa-clock,
.info-item i.fa-globe {
  color: var(--primary);
  border-color: var(--primary-100);
}

.info-content h4 {
  margin-bottom: 0.25rem;
}

.info-content p {
  margin: 0;
  color: #555;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Improve card look */
.contact-form-wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(7, 22, 46, 0.06);
  border: 1px solid var(--primary-100);
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  font-size: 0.98rem;
  padding: 0.95rem 1rem;
}

/* Custom file input */
.file-input {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.file-input-label {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--primary-100);
  color: var(--primary);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.file-input-name {
  color: #6B7280;
  font-size: 0.92rem;
}

.file-input input[type="file"] {
  display: none;
}

.btn-primary {
  background: linear-gradient(90deg, #00B4D8 0%, #0077B6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.12);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.contact-form-wrapper h3 {
  margin-bottom: 1.25rem;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  border-radius: 8px;
}

.map-container {
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
}

.contact-map {
  height: 100px;
}

/* Coluna de Informações */
.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #333;
  border-bottom: 2px solid var(--primary, #0056b3);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-right: 1.2rem;
  margin-top: 0.25rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  border: 2px solid var(--primary-100);
  box-shadow: 0 6px 18px rgba(7, 22, 46, 0.04);
}

.info-content h4 {
  margin-bottom: 0.5rem;
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-content p,
.info-content a {
  color: #666;
  text-decoration: none;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--primary, #0056b3);
  text-decoration: underline;
}

/* Form wrapper styling consolidated above */

/* Estilos do Formulário */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.full-col {
  grid-column: 1 / -1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary, #0056b3);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.contact-form-wrapper button[type="submit"] {
  width: 100%;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Mapa */
.contact-map {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100px;
  width: 100%;
  border: 1px solid #eee;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Validação Erros */
.error-text {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}

.input-error {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
}

.input-error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

@media (max-width: 768px) {
  .contact-hero h1 {
    padding-top: 150px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form-wrapper {
    order: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 2rem;
    padding-top: 130px;
  }

  .info-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-item i {
    font-size: 1.2rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 540px) {
  .contact-hero {
    padding: 2rem 0;
  }

  .contact-hero h1 {
    font-size: 1.85rem;
  }

  .contact-form .form-group {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 1.6rem;
    padding-top: 120px;
  }

  .info-content h4 {
    font-size: 1rem;
  }

  .info-content p,
  .info-content a {
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.3rem;
  }

  .map-container {
    height: 100px;
  }
}

/* Contactos e formulário lado a lado em ecrãs maiores. */
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-grid .full-col {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .contact-info {
    display: none;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrapper {
    order: 1;
  }
}
