/* ==========================================================================
   SEKCJA FORMULARZA KONTAKTOWEGO I PRZYCISKÓW (QUICK CONTACT)
   ========================================================================== */

.ak-contact-section {
  padding: 50px 0 65px;
  background-color: var(--ak-bg-light);
  border-top: 1px solid rgba(86, 168, 168, 0.15);
  border-bottom: 1px solid rgba(86, 168, 168, 0.15);
}

.ak-contact-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.ak-contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Lewa Kolumna: Karta z Formularzem */
.ak-form-card {
  background: var(--ak-bg-white);
  box-shadow: var(--ak-shadow-card);
  padding: 40px 36px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ak-form-heading {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--ak-navy-heading);
  text-align: left;
  text-wrap: balance;
  -webkit-text-wrap: balance;
}

.ak-form-group {
  margin-bottom: 18px;
}

/* Widoczna etykieta pola (2026-10-01): placeholder znikał po wpisaniu pierwszego znaku,
   więc był złą etykietą. Teraz placeholder to tylko przykład (np. Jan Kowalski). */
.ak-field-label {
  display: block;
  margin: 0 0 6px 22px; /* wyrównanie do tekstu w polu (padding pola: 22px) */
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ak-navy-dark);
  text-align: left;
}

.ak-field-optional {
  font-weight: 400;
  color: var(--ak-text-gray);
}

.ak-input, .ak-select {
  width: 100%;
  padding: 15px 22px;
  border-radius: 50px;
  border: 1px solid var(--ak-border-light);
  background: var(--ak-bg-light);
  font-size: 16px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  color: var(--ak-text-field);
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Placeholder pełni rolę widocznej etykiety, więc musi mieć 4,5:1 (#94a3b8 miał 2,4:1) */
.ak-input::placeholder {
  color: var(--ak-text-subtle);
  opacity: 1;
}

.ak-input:focus, .ak-select:focus {
  border-color: var(--ak-teal-ink);
  background: var(--ak-bg-white);
  box-shadow: 0 0 0 3px rgba(47, 116, 130, 0.25);
}

.ak-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%2351a8a9' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}

.ak-select option {
  font-size: 16px;
  padding: 10px;
  background-color: var(--ak-bg-white);
  color: var(--ak-text-field);
}

#ak-form-result {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-top: 15px;
  display: none;
  padding: 12px;
  border-radius: 12px;
}

/* Prawa Kolumna: Przyciski kontaktowe */
.ak-contact-buttons-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

/* Przycisk akcji (Pigułka z gradientem i blaskiem) */
.ak-btn-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 370px;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse);
  text-decoration: none;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  appearance: none;
  outline: none;
  cursor: pointer;
  text-align: left;
}

.ak-btn-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-200%) skewX(-25deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ak-btn-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px -6px rgba(31, 95, 104, 0.55);
}

.ak-btn-pill:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

/* Widoczny fokus z klawiatury (N01, 2026-09-30) — wcześniej tylko outline: none */
.ak-btn-pill:focus-visible {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 3px;
}

/* Stan wysyłania: przycisk zablokowany do czasu odpowiedzi serwera */
.ak-btn-pill:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

/* Pole odrzucone przez walidację */
.ak-input[aria-invalid="true"],
.ak-select[aria-invalid="true"] {
  border-color: var(--ak-error);
  box-shadow: 0 0 0 1px var(--ak-error);
}

.ak-consent-checkbox:focus-visible {
  outline: 2px solid var(--ak-navy-dark);
  outline-offset: 2px;
}

.ak-btn-pill:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 4px 10px -4px rgba(31, 95, 104, 0.45);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

/* Wewnętrzne elementy przycisku */
.ak-btn-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ak-btn-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: var(--ak-text-inverse);
}

.ak-btn-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ak-btn-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Rola „podpis przycisku” (2026-10-01): wspólna dla wszystkich pigułek.
   Wcześniej 7,5–10 px wersalikami z rozstrzeleniem — nieczytelne na telefonie. */
.ak-btn-subtitle {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Responsywność */
@media (max-width: 850px) {
  .ak-contact-section {
    padding: 35px 0 45px;
  }
  .ak-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ak-form-card {
    padding: 26px 18px;
    border-radius: 20px;
  }
  .ak-form-heading {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 20px;
    text-align: center;
  }
  .ak-input, .ak-select {
    padding: 13px 18px;
    font-size: 16px; /* poniżej 16 px iOS Safari powiększa stronę przy wejściu w pole */
  }
  .ak-field-label {
    margin-left: 18px;
  }
}

@media (max-width: 600px) {
  .ak-btn-pill {
    padding: 10px 16px 10px 10px;
  }
  .ak-btn-icon-wrap {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }
  .ak-btn-icon-wrap svg {
    width: 18px;
    height: 18px;
  }
  .ak-btn-title {
    font-size: 15.5px;
  }
  .ak-btn-subtitle {
    font-size: 12.5px;
  }
}


/* Pole zgody RODO na dole formularza */
.ak-consent-group {
  margin: 14px 0 20px 0;
  text-align: left;
}

.ak-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.ak-consent-checkbox {
  margin-top: 1px;
  width: 14px;
  height: 14px;
  accent-color: var(--ak-teal-action);
  cursor: pointer;
  flex-shrink: 0;
}

.ak-consent-text {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 12px; /* 2026-10-01: 12 px telefon / 12 px komputer (wcześniej 11 / 8 px) */
  line-height: 1.5;
  color: var(--ak-text-subtle); /* 4,76:1 na białej karcie */
  text-align: left;
}

@media (min-width: 769px) {
  .ak-consent-text {
    font-size: 12px;
  }
}

.ak-consent-link {
  color: var(--ak-teal-ink);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ak-consent-link:hover {
  color: var(--ak-navy-dark);
}
