/**
 * Dodatkowe style dla projektu PremiumOpinie.pl
 * Zawiera ulepszenia RWD i optymalizacje dla mobilnych urządzeń
 */

/* Poprawa responsywności formularzy */
@media (max-width: 768px) {
  .masthead__form--wrapper {
    padding: 20px;
  }
  
  .masthead__form--group {
    margin-bottom: 15px;
  }
  
  .masthead__form--row {
    flex-direction: column;
  }
  
  .masthead__form--row .masthead__form--group {
    width: 100%;
    margin-right: 0;
  }
  
  .form__group.col-half, 
  .form__group.col-third, 
  .form__group.col-two-thirds {
    width: 100%;
    margin-right: 0;
  }
  
  .button__lg {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Dodatkowe style dla komunikatów o błędach formularzy */
.form__error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form__base.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px #e74c3c;
}

/* Animacje i efekty formularzy */
.form__base:focus {
  border-color: #540C97;
  box-shadow: 0 0 0 2px rgba(84, 12, 151, 0.2);
  transition: all 0.3s ease;
}

.button {
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Optymalizacja dla wydajności na mobilnych urządzeniach */
@media (max-width: 480px) {
  .masthead__rocket {
    display: none; /* Ukryj animacje na małych urządzeniach */
  }
  
  .introduction__hero {
    margin-top: 30px;
  }
  
  .section__heading--title {
    font-size: 28px;
  }
  
  .features__column {
    margin-bottom: 20px;
  }
  
  .pricing__card {
    margin-bottom: 20px;
  }
}

/* Poprawione style formularza zamówienia */
.masthead__form--body2 {
  padding: 25px;
}

.business-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.stats-title {
  font-weight: 600;
  margin: 20px 0 10px;
  color: #540C97;
  font-size: 18px;
}

.address-center {
  text-align: center;
  margin-bottom: 20px;
}

/* Animacja "loading" dla przycisków formularza podczas wysyłania */
.button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.button.is-loading:after {
  content: "";
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animacje przy pokazywaniu sekcji */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Dodatkowe metaznaczniki dla lepszego SEO */
/* Te style są tu tylko dla referencji - prawdziwe tagi meta idą do HTML */