/*
Theme Name: Interaktywni NGO
Theme URI: https://inter-aktywni.pl
Description: Motyw Eventowy InteAktywni @Astra_Theme
Author: Sławek Nazaruk
Author URI: https://inter-aktywni.pl
Template: astra
Version: 1.0.0
*/



/* *****************  STYLE DLA FORMULARZA REJESTRACYJNEGO  ***************** */

/* --- Podstawowy reset/box-model */
#ciosk-registration-form,
#ciosk-registration-form * {
    box-sizing: border-box;
    font-family: inherit;
}
.ciosk-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.ciosk-form:hover {
    transform: translateY(-3px);
}
.ciosk-form__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}
.ciosk-form__row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ciosk-form__field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}
.ciosk-form__fullwidth {
    flex: 1 1 100%;
}
.ciosk-form__label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.ciosk-form__field input,
.ciosk-form__field select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ciosk-form__field input:focus,
.ciosk-form__field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0.5rem rgba(0,115,170,0.3);
}
.ciosk-form__rodo {
    margin: 1rem 0;
    font-size: 0.875rem;
}
.ciosk-form__rodo input {
    margin-right: 0.5rem;
    transform: scale(1.2);
}
.ciosk-form__rodo-text {
    vertical-align: middle;
    line-height: 1.4;
}
.ciosk-form__submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #0073aa;
    color: #fff;
    font-size: 1.125rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ciosk-form__submit:hover {
    background: #005f8d;
    transform: translateY(-2px);
}
@media (max-width: 480px) {
    .ciosk-form {
        padding: 1.5rem;
    }
    .ciosk-form__row {
        flex-direction: column;
    }
}

/* 1) Odstęp pod polami full-width (np. Data urodzenia, Miejsce zamieszkania) */
.ciosk-form__field.ciosk-form__fullwidth {
  margin-bottom: 1rem;
}

/* 2) Upewniamy się, że <select> ma wystarczający line-height i padding */
.ciosk-form__field select {
  /* zachowujemy istniejące paddingi, ale wymuszamy line-height */
  padding: 0.75rem 1rem;
  line-height: 1.4;
  
  /* jeśli potrzebujesz, możesz też dodać: */
  /* height: auto; */
}

/* ewentualnie, żeby data też miała odstęp: */
#ciosk-registration-form input[type="date"] {
  margin-bottom: 1rem;
}

.ciosk-thanks {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #e0f7fa;
  border-radius: 1rem;
  text-align: center;
}
.ciosk-thanks h2 {
  margin-bottom: 1rem;
}


/* *****************  KONIEC  ***************** */




/* *****************  LOGOWANIE  ***************** */

.ciosk-login-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}
#ciosk-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#ciosk-login-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
}
#ciosk-login-form label {
  font-weight: 600;
}
#ciosk-login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ciosk-login__lostpass {
  margin-top: 1rem;
  text-align: right;
}
.ciosk-login__lostpass a {
  color: #0073aa;
}


/* *****************  KONIEC  ***************** */


/* Kontener profilu */
.ciosk-profile {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

/* Nagłówki */
.ciosk-profile h2 {
  font-size: 2rem;
  color: #0073AA;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.ciosk-profile h3 {
  font-size: 1.5rem;
  color: #005F8D;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ACF front-end form */
.acf-form .acf-field {
  margin-bottom: 1.5rem;
}
.acf-form .acf-label label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.acf-form input[type="text"],
.acf-form input[type="date"],
.acf-form input[type="number"],
.acf-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #DDD;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acf-form input:focus,
.acf-form select:focus {
  outline: none;
  border-color: #0073AA;
  box-shadow: 0 0 0.5rem rgba(0,115,170,0.3);
}
.acf-form .acf-form-submit {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0073AA;
  color: #FFF;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.acf-form .acf-form-submit:hover {
  background: #005F8D;
}

/* Status składek */
.ciosk-fee-status {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.ciosk-fee-status li {
  flex: 1 1 120px;
  background: #F5F5F5;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ciosk-fee-status li .paid {
  color: #28A745;
  font-weight: 700;
}
.ciosk-fee-status li .unpaid {
  color: #DC3545;
  font-weight: 700;
}

/* Wiadomości członkowskie */
.ciosk-messages {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ciosk-messages {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .ciosk-messages {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.ciosk-message {
  background: #FAFAFA;
  padding: 1rem;
  border-left: 4px solid #0073AA;
  border-radius: 0.5rem;
}
.ciosk-message h4 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #005F8D;
}
.ciosk-message__content {
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* kontener 2-kolumnowy */
.ciosk-profile-wrapper {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}
.ciosk-profile-left {
  flex: 2;
}
.ciosk-profile-right {
  flex: 1;
}

/* sekcja wiadomości */
.ciosk-profile-section-title {
  font-size: 1.75rem;
  color: #005F8D;
  margin-bottom: 1rem;
}
.ciosk-messages-list .ciosk-message-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ciosk-message-date {
  margin-bottom: 0.5rem;
}
.ciosk-message-text {
  line-height: 1.6;
}

/* box w prawej kolumnie */
.ciosk-profile-box {
  background: #FFF;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

/* status składek pionowo */
.ciosk-fee-status-vertical {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.ciosk-fee-status-vertical li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ciosk-fee-status-vertical li:last-child {
  border-bottom: none;
}
.ciosk-fee-status-vertical .paid {
  color: #28A745;
  font-weight: 600;
}
.ciosk-fee-status-vertical .unpaid {
  color: #DC3545;
  font-weight: 600;
}
.ciosk-fee-status-vertical .year {
  font-weight: 600;
}

/* ———————————————— */
/* LEWA KOLUMNA */
/* ———————————————— */
.ciosk-message-date strong {
  color: #0B95C6;
}

/* ———————————————— */
/* PRAWA KOLUMNA – BOXY */
/* ———————————————— */
.ciosk-box {
  background: #FFF;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* Link przy składkach */
.ciosk-button--small {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #0B95C6;
  color: #fff;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.ciosk-button--small:hover {
  background: #087a9f;
}

/* Zmniejszony przycisk „Zapisz zmiany” */
.ciosk-box–profile .acf-form .acf-form-submit {
  font-size: 0.9rem!important;
  padding: 0rem 1rem!important;
}


a {text-decoration:none!important;}



/* === Kontener przycisków === */
.ciosk-header-buttons {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
}

/* === Wspólny styl przycisków === */
.ciosk-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 0.6rem !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
/* Ikona Dashicons przed tekstem */
.ciosk-btn::before {
  font-family: 'Dashicons' !important;
  font-style: normal !important;
  font-weight: 400 !important;
  speak: none !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 0.3em !important;
  font-size: 1.2em !important;
}

/* Hover dla wszystkich przycisków */
.ciosk-btn:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
  transform: translateY(-2px) !important;
}

/* === Zaloguj się === */
.ciosk-btn--login {
  background: rgba(0,0,0,0.05) !important;
  color: #333 !important;
}
.ciosk-btn--login:hover {
  background: rgba(0,0,0,0.1) !important;
}
.ciosk-btn--login::before {
  content: "\f160" !important; /* kłódka */
}

/* === Wyloguj się === */
.ciosk-btn--logout {
  background: rgba(0,0,0,0.05) !important;
  color: #333 !important;
}
.ciosk-btn--logout:hover {
  background: rgba(0,0,0,0.1) !important;
}
.ciosk-btn--logout::before {
  content: "\f528" !important; /* strzałka-lewo */
}

/* === Dołącz do nas === */
.ciosk-btn--join {
  background: #ff8200 !important;
  color: #fff !important;
  animation: ciosk-pulse 4s ease-in-out infinite !important;
}
.ciosk-btn--join:hover {
  background: #e06b00 !important;
  box-shadow: 0 0.75rem 1.5rem rgba(224,107,0,0.6) !important;
}
.ciosk-btn--join::before {
  content: "\f307" !important; /* grupa ludzi */
}

/* === Animacja pulse dla „Dołącz do nas” === */
@keyframes ciosk-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* === Mobile: centrowanie i większy gap dla header buttons === */
@media (max-width: 768px) {
  .ciosk-header-buttons {
    justify-content: center !important;
    gap: 1rem !important;       /* większy odstęp */
    flex-wrap: wrap !important;  /* w razie gdyby nie mieściły się w jednym wierszu */
  }
}

