/* =====================================================
   Rejestracja - Erasmus+ FRSE
   Custom styles on top of Bootstrap 5
===================================================== */

:root {
    --brand-teal: #2e7878;
    --brand-teal-dark: #1f5a5a;
    --brand-teal-darker: #15403f;
    --card-bg: rgba(255, 255, 255, 0.85);
    --field-bg: #ffffff;
    --field-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --text-dark: #1c1c1c;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    /* aby zawartość się scrolowała */
    min-height: 100vh;
    overflow-x: hidden;
}


.container { max-width:800px!important; }


/* ----------- Tło fixed cover ----------- */
.bg-fixed {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('img/background.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}



/* ----------- Page wrapper ----------- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------- HEADER ----------- */
.site-header {
    flex: 1 0 auto;    
    padding: 22px 32px;
    position: relative;
}

.site-header .logo-frse {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.site-header .logo-erasmus {
    height: 60px;
    width: auto;
    max-width: 100%;
}

/* ----------- MAIN ----------- */
.site-main {
    flex: 1 0 auto;
    padding: 20px 0 0;
}

/* ----------- Form card ----------- */
.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 18px 18px 0 0 ;
    padding: 48px clamp(20px, 5vw, 70px) 56px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.form-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    color: var(--text-dark);
    margin: 0 0 36px 0;
    letter-spacing: -0.5px;
}

.section-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-dark);
    margin: 24px 0 8px 0;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    background-color: var(--field-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 1rem;
    height: 48px;
    box-shadow: var(--field-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.2rem rgba(46, 120, 120, 0.18);
    outline: none;
}

/* ----------- Submit button ----------- */
.btn-submit {
    background-color: var(--brand-teal);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 44px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(46, 120, 120, 0.35);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    min-width: 180px;
}

.btn-white {
    color: #000000!important;
    background-color: #fff!important;    
}
.btn-white span {
    color: #000000!important;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--brand-teal-dark);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(46, 120, 120, 0.45);
}

.btn-submit:active {
    background-color: var(--brand-teal-darker);
    transform: translateY(1px);
}

/* ----------- FOOTER ----------- */
.site-footer {
    flex-shrink: 0;
    padding: 24px 0 32px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.eu-logos {
    max-height: 80px;
    width: auto;
}

/* ----------- Responsywność ----------- */
@media (max-width: 767.98px) {

    .site-header {
        padding: 16px 18px;
    }

    .site-header .logo-frse,
    .site-header .logo-erasmus {
        height: 44px;
    }

    .form-card {
        padding: 32px 22px 40px;
        border-radius: 14px;
    }

    .form-title {
        margin-bottom: 24px;
    }

    .footer-inner {
        padding: 12px 14px;
    }

    .eu-logos {
        max-height: 44px;
    }

    /* na mobile tło fixed bywa problematyczne na iOS -
       przełączamy na scroll, by uniknąć błędów renderowania */
    .bg-fixed {
        background-attachment: scroll;
    }
}

@media (max-width: 360px) {
    .site-header .row {
        justify-content: center !important;
    }

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



.custom-check {
  display: flex;
  flex-direction: row; /* label pod checkboxem */
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom:15px;
}

.custom-check label {
  display: flex;
  flex-direction: column; /* label pod checkboxem */
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.custom-check input {
  display: none;
}

.custom-check .box {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: block;
  position: relative;
  background-color: var(--field-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);  
}

/* stan checked */
.custom-check input:checked + .box {
  background: #000;
}

.custom-check .text {
  font-size: 14px;
}



body.home .site-main * {
    color:#fff;

}