/* ==========================================================================
   Zapisy na kolędę – odświeżony wygląd (2026).
   Plik wczytywany jako ostatni: tylko nadpisuje style szablonu, niczego nie usuwa.
   Usunięcie linku do tego pliku przywraca poprzedni wygląd.
   ========================================================================== */

:root {
  --k-navy: #2e3f6e;
  --k-blue: #384f95;
  --k-blue-light: #eef2fb;
  --k-text: #1f2a44;
  --k-muted: #5b6785;
  --k-border: #d5dbe8;
  --k-focus: rgba(56, 79, 149, .22);
  --k-radius: 12px;
}

html { -webkit-text-size-adjust: 100%; }
body { color: var(--k-text); }

/* ---------- nagłówek kolumny z formularzem ---------- */
.login-column { padding-top: 56px; }
.login-column_header { margin-bottom: 28px; }
.login-column_header img { max-width: 190px; height: auto; }
.login-column_header h4 { font-size: 26px; line-height: 1.25; color: var(--k-navy); }

/* komunikat o terminie / zamknięciu zapisów (h3 bezpośrednio w kolumnie) */
.login-column > h3 {
  display: inline-block;
  margin: 0 20px 32px !important;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--k-blue-light);
  color: var(--k-navy);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

/* ---------- zakładki ---------- */
.main-register .tabs-menu { border-bottom: 1px solid #e7eaf3; }
.main-register .tabs-menu li a { font-size: 14px; color: var(--k-muted); padding: 14px 4px; }
.main-register .tabs-menu li.current a { color: var(--k-navy); }
.main-register .tabs-menu li a i { margin-right: 8px; }

/* ---------- sekcje formularza ---------- */
#user-form .dashboard-title { margin-bottom: 14px; }
#user-form .dashboard-title h3 { font-size: 19px; color: var(--k-navy); }
#user-form .profile-edit-container {
  padding: 22px;
  margin-bottom: 26px;
  border: 1px solid #e3e7f1;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(31, 42, 68, .05);
  overflow: visible;
}
#user-form .custom-form { width: 100%; float: none; }
/* Ostatni blok (zgoda + przycisk) musi stać POD kartami, a nie nakrywać ich –
   bez tego przezroczysty blok zasłaniał pola i nie dało się w nie kliknąć. */
#user-form > .custom-form { clear: both; }
#user-form::after { content: ""; display: table; clear: both; }
#user-form .custom-form::after,
#user-form .form-group::after { content: ""; display: table; clear: both; }
#user-form .koleda_text_before { margin: 0; padding: 0; }

#user-form .form-group { margin: 0 0 18px; float: none; width: 100%; position: relative; }
#user-form .profile-edit-container .form-group:last-child,
#user-form .kf-row .form-group { margin-bottom: 0; }
#user-form .kf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#user-form .custom-form label {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--k-muted);
  text-align: left;
}
#user-form .custom-form label i { margin-left: 6px; opacity: .55; font-size: 12px; position: static; }

#user-form .custom-form input[type="text"],
#user-form .custom-form input[type="tel"],
#user-form .custom-form input[type="email"],
#user-form .custom-form textarea,
#user-form .select-custom .select-custom__btn {
  display: block;
  float: none;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid var(--k-border) !important;
  border-radius: var(--k-radius) !important;
  background: #fff;
  box-shadow: none !important;
  color: var(--k-text);
  font-family: inherit;
  font-size: 16px;            /* 16px = brak automatycznego powiększania na iPhonie */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#user-form .custom-form textarea { min-height: 120px; height: 120px; resize: vertical; }

#user-form .custom-form input:focus,
#user-form .custom-form textarea:focus,
#user-form .select-custom .select-custom__btn:focus {
  outline: none;
  border-color: var(--k-blue) !important;
  box-shadow: 0 0 0 4px var(--k-focus) !important;
}

/* ---------- lista miejscowości ---------- */
#user-form .select-custom { position: relative; }
#user-form .select-custom .select-custom__btn {
  position: relative !important;
  padding-right: 42px;
  text-align: left;
  cursor: pointer;
}
#user-form .select-custom .select-custom__btn::before { display: none; }
#user-form .select-custom .select-custom__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--k-muted);
  border-bottom: 2px solid var(--k-muted);
  transform: rotate(45deg);
  background: none;
  opacity: 1;
  pointer-events: none;
}
#user-form .select-custom__list,
#user-form .street-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  box-shadow: 0 14px 34px rgba(31, 42, 68, .16);
  text-align: left;
}
#user-form .select-custom__list { max-height: 330px; }
#user-form .select-custom__list[hidden],
#user-form .street-suggest[hidden] { display: none; }
#user-form .select-custom__list li,
#user-form .street-suggest li {
  display: block;
  padding: 12px 12px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--k-text);
  text-align: left;
  cursor: pointer;
}
#user-form .select-custom__list li:hover,
#user-form .select-custom__list li:focus,
#user-form .street-suggest li:hover,
#user-form .street-suggest li.is-active {
  background: var(--k-blue-light);
  outline: none;
}

/* ---------- ulica z podpowiedziami ---------- */
#user-form .street-combo { position: relative; }
#user-form .kf-hint {
  margin: 7px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--k-muted);
  text-align: left;
  min-height: 18px;
}

/* ---------- zgoda RODO ---------- */
#user-form label.rodo {
  display: block;
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  padding: 14px 16px 14px 52px;
  box-sizing: border-box;
  border: 1px solid #e3e7f1;
  border-radius: var(--k-radius);
  background: #fafbfe;
  font-size: 15px;
  line-height: 1.45;
  color: var(--k-text);
  cursor: pointer;
}
#user-form label.rodo input[type="checkbox"] {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  margin: 0;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--k-blue);
  cursor: pointer;
}
#user-form label.rodo a { color: var(--k-blue); text-decoration: underline; }
#user-form .custom-form > .tab { margin: 10px 2px 0; }
#user-form .custom-form > .tab label { font-weight: 400; font-size: 13px; margin: 0; }
#user-form .log-separator { margin: 18px 0 18px; }

/* ---------- przycisk wysyłki ---------- */
#user-form #save-button {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--k-blue);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(56, 79, 149, .28);
  transition: background .15s ease, transform .05s ease;
}
#user-form #save-button:hover { background: var(--k-navy); }
#user-form #save-button:active { transform: translateY(1px); }
#user-form #save-button:focus-visible { outline: 3px solid var(--k-focus); outline-offset: 2px; }
#user-form #save-button[disabled] { opacity: .65; cursor: progress; }
#user-form #save-button i {
  position: static;
  margin-left: 10px;
  width: auto;
  height: auto;
  line-height: inherit;
  background: none;
  border: 0;
  color: inherit;
  font-size: 16px;
}

/* ---------- okno komunikatu ---------- */
#error-modal {
  z-index: 1000;
  background: rgba(31, 42, 68, .55);
}
#error-modal .modal-content {
  width: calc(100% - 40px);
  max-width: 420px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  text-align: left;
}
#error-modal #error-message {
  margin: 0;
  padding-right: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--k-text);
}
#error-modal .close-modal {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 26px;
  color: var(--k-muted);
  border-radius: 50%;
}
#error-modal .close-modal:hover { background: var(--k-blue-light); }

/* ---------- zakładka RODO i dane parafii ---------- */
.zapisy-rodo, .zapisy-rodo p, .zapisy-rodo li { font-size: 15px; line-height: 1.6; color: var(--k-text); text-align: left; }
.zapisy-rodo ol { padding-left: 22px; }
.zapisy-rodo li { margin-bottom: 8px; }

/* strona potwierdzenia (post.html) */
.login-column_header .alert { font-size: 17px; }
.login-column_header h3 { font-size: 17px; line-height: 1.5; color: var(--k-text); }

/* ==========================================================================
   TABLET (i wąskie okna): formularz na całą szerokość, zdjęcie jako nagłówek
   ========================================================================== */
@media (max-width: 1064px) {
  .login-column-bg {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    left: 0; top: 0;
  }
  .login-column-bg .ms-item_fs.full-height,
  .login-column-bg .slideshow-container,
  .login-column-bg .swiper-container,
  .login-column-bg .swiper-wrapper,
  .login-column-bg .swiper-slide { height: 300px !important; min-height: 0 !important; }
  .login-column-bg { min-height: 0 !important; padding: 0 !important; box-sizing: border-box; }
  .login-promo-container {
    position: absolute !important;
    left: 0; right: 0; top: 50% !important; bottom: auto !important;
    transform: translateY(-50%);
    margin: 0 !important;
  }
  .login-column {
    float: none !important;
    width: 100% !important;
    padding-top: 36px;
    padding-bottom: 24px;
    min-height: calc(100vh - 300px);
    box-sizing: border-box;
  }
  .login-column_header {
    float: none;
    width: auto;
    max-width: 600px;
    margin: 0 auto 28px;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .main-register-holder {
    float: none;
    width: auto;
    max-width: 640px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .main-register { float: none; width: 100%; margin-bottom: 0; box-shadow: none; overflow: visible; }
  .main-register::after { content: ""; display: table; clear: both; }
  .main-register .tabs-menu { padding: 0; box-sizing: border-box; display: flex; width: 100%; float: none; }
  .main-register .tabs-menu li { float: none; flex: 1 1 0; width: auto; }
  .main-register .tabs-menu li a { text-align: center; }
  .main-register .tab-content { float: none; width: 100%; padding-left: 0; padding-right: 0; box-sizing: border-box; }
  .main-register .tabs-container { float: none; width: 100%; padding: 0; margin: 0; box-sizing: border-box; }
}

/* ==========================================================================
   TELEFON
   ========================================================================== */
@media (max-width: 600px) {
  .login-column-bg,
  .login-column-bg .ms-item_fs.full-height,
  .login-column-bg .slideshow-container,
  .login-column-bg .swiper-container,
  .login-column-bg .swiper-wrapper,
  .login-column-bg .swiper-slide { height: 210px !important; min-height: 0 !important; max-height: 210px !important; }
  .login-promo-container {
    position: absolute !important;
    left: 0; right: 0; top: 50% !important; bottom: auto !important;
    transform: translateY(-50%);
    margin: 0 !important;
    padding: 0 12px;
  }
  .login-promo-container .container { width: 100%; padding: 0; }
  .login-promo-container .video_section-title { margin: 0; padding: 0; }
  .login-promo-container .video_section-title h3 { font-size: 14px; line-height: 1.2; margin: 0 0 4px; padding: 0; }
  .login-promo-container .video_section-title h1 { font-size: 30px; line-height: 1.1; margin: 0; padding: 0; }
  .login-promo-container .video_section-title h2 { font-size: 20px; line-height: 1.2; margin: 2px 0 0; padding: 0; }
  .login-promo-container .video_section-title h4 { font-size: 12px; line-height: 1.2; margin: 6px 0 0; padding: 0; }
  .main-register .tabs-menu li.current a { box-shadow: none; }

  .login-column { padding-top: 24px; min-height: calc(100vh - 210px); }
  .login-column_header { margin: 0 auto 18px; padding: 0 16px; }
  .login-column_header img { max-width: 150px; }
  .login-column_header h4 { font-size: 21px; margin-top: 12px; }
  .login-column > h3 { margin: 0 16px 20px !important; font-size: 14px; padding: 10px 18px; }

  .main-register-holder { padding: 0 14px; margin-bottom: 24px; }
  .main-register .tabs-menu { padding: 6px 0; gap: 6px; box-shadow: none; border-bottom: 1px solid #e7eaf3; }
  .main-register .tabs-menu li a { padding: 10px 6px; font-size: 13px; }
  .main-register .tabs-menu li a i { display: none; }

  #user-form .dashboard-title h3 { font-size: 18px; margin: 6px 0 0; }
  #user-form .profile-edit-container { padding: 16px; margin-bottom: 20px; border-radius: 14px; }
  #user-form .select-custom__list,
  #user-form .street-suggest { max-height: 228px; }

  /* przycisk zwykły (nie "przyklejony"), żeby nie zasłaniał pól i klawiatury */
  #user-form #save-button { position: static; }
}

@media (max-width: 360px) {
  #user-form .kf-row { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
