/* Style specyficzne dla strony kontaktowej */
.page-header {
  padding-top: 120px;
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.contact {
  padding: 5rem 0;
  background-color: white;
}

.contact-container {
  display: flex;
  gap: 3rem;
}

/* Sekcja informacji kontaktowych */
.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  color: var(--primary);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.contact-item {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 1.2rem;
  min-width: 30px;
  text-align: center;
  background-color: rgba(37, 99, 235, 0.1);
  padding: 10px;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-text p {
  color: #64748b;
  line-height: 1.6;
}

.contact-text a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--primary);
}

/* Sekcja formularza kontaktowego */
.contact-form {
  flex: 1;
  background-color: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  color: var(--primary);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.contact-form h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
  border-color: #e53e3e;
}

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

.btn-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-loader {
  margin-right: 8px;
}

/* Walidacja formularza i wiadomości */
.error-hint {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-control.error + .error-hint {
  display: block;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.success-message {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.error-message {
  background-color: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: #dc2626;
}

/* Ukrycie pola honeypot */
.honeypot {
  display: none !important;
}

/* Sekcja mapy */
.map-section {
  padding: 5rem 0;
  background-color: #f1f5f9;
}

.map-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 700;
}

.map-container {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  border-radius: 12px;
}

/* Projekt responsywny */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-form, .contact-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem; /* Zmniejszam padding z 2.5rem */
  }

  .form-control {
    padding: 0.7rem; /* Zmniejszam padding pól formularza */
  }
  .page-header {
    padding-top: 100px;
  }

  .contact {
    padding: 3rem 0;
  }

  .map-section {
    padding: 3rem 0;
  }

  .map-container {
    height: 350px;
  }

  .btn-submit {
    width: 100%;
  }
}

/* Style dostępności dla focus */
.form-control:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}