/**
 * !!! WAŻNE !!!
 * NIE MODYFIKOWAĆ TEGO PLIKU.
 *
 * UPDATE 2026-11-25:
 * Zmodyfikowano.
 * Powstał dedykowany szablon iADE.
 *
 * UPDATE 2:
 * Zmodyfikowano ponownie.
 * Mobile first.
 * Jedziemy z koksem.
 * Świat nadal istnieje.
 */


/* ========================================
   LOCAL FONTS
   ======================================== */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../../../assets/fonts/montserrat-v31-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../../../assets/fonts/montserrat-v31-latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../../../assets/fonts/montserrat-v31-latin_latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../../../assets/fonts/montserrat-v31-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../../../assets/fonts/oswald-v57-latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../../../assets/fonts/oswald-v57-latin_latin-ext-600.woff2') format('woff2');
}


/* ========================================
   BRAND VARIABLES
   ======================================== */

:root {
    --page-background: #DFDFDF;
    --form-background: #DFDFDF;

    --text-color: #002FA7;
    --muted-color: #002FA7;

    --field-background: #ECECEC;
    --field-border: #BFC5D2;

    --accent-color: #002FA7;
    --secondary-color: #EE6813;

    --error-color: #B42318;

    --font-primary: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-secondary: 'Oswald', Arial, Helvetica, sans-serif;
}


/* ========================================
   GENERAL
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;
    min-height: 100dvh;

    background: var(--page-background);
    color: var(--text-color);

    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
}

main {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    min-height: 100dvh;
}


/* ========================================
   FORM CONTAINER - MOBILE FIRST
   ======================================== */

#register-section {
    display: flex;
    flex-direction: column;
    flex: 1;

    width: 100%;
    max-width: 600px;

    margin: 0 auto;
    padding: 0;
}

#registration-form {
    display: flex;
    flex-direction: column;
    flex: 1;

    width: 100%;
    margin: 0;
}

.form-box {
    display: flex;
    flex-direction: column;
    flex: 1;

    width: 100%;
    padding: 26px 26px 32px;

    padding-top: max(26px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    padding-left: max(26px, env(safe-area-inset-left));
    padding-right: max(26px, env(safe-area-inset-right));

    background: var(--form-background);

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    flex: 1;

    width: 100%;
}

.form-section {
    width: 100%;
}


/* ========================================
   LOGO
   ======================================== */

.form-logo {
    display: block;

    width: 100%;
    margin: 0 0 32px;

    text-align: left;
}

.form-logo img {
    display: block;

    width: 100px;
    max-width: 100%;
    height: auto;
}


/* ========================================
   HEADINGS
   ======================================== */

#register-section h1 {
    margin: 0 0 12px;

    color: var(--text-color);

    font-family: var(--font-primary);
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: -0.5px;

    text-align: center;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

#register-section h2 {
    margin: 24px 0 18px;

    color: var(--text-color);

    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;

    line-height: 1.4;
}

.subtitle {
    position: relative;

    margin: 0 0 32px;
    padding-bottom: 20px;

    color: var(--text-color);

    font-size: 15px;
    font-weight: 400;

    text-align: center;
    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.subtitle::after {
    content: '';

    position: absolute;
    bottom: 0;
    left: 50%;

    width: 52px;
    height: 1px;

    transform: translateX(-50%);

    background: var(--secondary-color);
}


/* ========================================
   FORM FIELDS
   ======================================== */

.form {
    width: 100%;
    margin-bottom: 20px;
}

.form > label {
    display: block;
    margin-bottom: 8px;

    color: var(--text-color);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;
}

#register-section input:not([type="checkbox"]):not([type="hidden"]),
#register-section select {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 54px;

    padding: 14px 15px;

    border: 1px solid var(--field-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 0;

    background: var(--field-background);
    color: var(--text-color);

    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;

    line-height: 1.4;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

#register-section input:not([type="checkbox"]):not([type="hidden"]):focus,
#register-section select:focus {
    border-color: var(--accent-color);

    background: #FFFFFF;

    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 47, 167, 0.15);
}


/* ========================================
   CHECKBOX AND PRIVACY POLICY
   ======================================== */

.checkbox-group {
    margin: 12px 0 16px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    min-height: 44px;
    padding: 4px 0;

    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    flex-shrink: 0;

    width: 24px;
    height: 24px;

    margin: 1px 0 0;

    accent-color: var(--accent-color);

    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.consent-text {
    color: var(--text-color);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;
}

.consent-text a {
    color: var(--accent-color) !important;

    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-text a:hover {
    opacity: 0.7;
}

.consent-text a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.required-info {
    margin: 4px 0 20px;

    color: var(--text-color);

    font-size: 12px;
    font-weight: 400;
}


/* ========================================
   REGISTRATION BUTTON
   ======================================== */

.button-group {
    width: 100%;
    margin-top: 8px;
}

.button-group button {
    display: block;

    width: 100%;
    min-height: 58px;

    padding: 14px 20px;

    border: 0;
    border-radius: 0;

    background: var(--accent-color);
    color: #FFFFFF;

    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;

    line-height: 1.4;
    letter-spacing: 0.8px;

    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.button-group button:hover {
    opacity: 0.88;
}

.button-group button:active:not(:disabled) {
    transform: scale(0.99);
}

.button-group button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.button-group button:disabled {
    opacity: 0.5;
    cursor: wait;
}


/* ========================================
   VALIDATION AND ERROR MESSAGES
   ======================================== */

.error {
    display: none;

    margin-top: 7px;

    color: var(--error-color);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;
}

.has-error,
#register-section [aria-invalid="true"] {
    border-color: var(--error-color) !important;
    outline: 1px solid var(--error-color);
}

.form-message {
    display: none;

    margin: 16px 0;
    padding: 14px 16px;

    border: 1px solid #F0B4AF;
    border-radius: 0;

    background: #FFF5F5;
    color: var(--error-color);

    font-size: 14px;
    line-height: 1.5;
}


/* ========================================
   SUCCESS AND CLOSED REGISTRATION
   ======================================== */

.form-success,
.registration-closed {
    margin: auto 0;
    padding: 40px 0;

    text-align: center;
}

#register-section .form-success h1,
#register-section .registration-closed h1 {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.closed-message {
    margin: 20px 0 0;

    color: var(--text-color);

    font-size: 17px;
    line-height: 1.6;
}


/* ========================================
   COOKIE NOTICE
   ======================================== */

body .cookies {
    background: #ECECEC;

    border: 1px solid var(--accent-color);
    border-radius: 0;

    color: var(--text-color);
    font-family: var(--font-primary);

    box-shadow: none;
}

body .cookies h2 {
    color: var(--accent-color);

    font-family: var(--font-primary);
    font-weight: 700;
}

body .cookies p {
    color: var(--text-color);
}

body .cookies button {
    background-color: var(--accent-color);
    color: #FFFFFF;

    border-radius: 0;

    font-family: var(--font-primary);
    font-weight: 600;
}


/* ========================================
   SMALL MOBILE SCREENS
   ======================================== */

@media screen and (max-width: 360px) {

    .form-box {
        padding-left: 18px;
        padding-right: 18px;
    }

    .form-logo {
        margin-bottom: 26px;
    }

    .form-logo img {
        width: 90px;
    }

    #register-section h1 {
        font-size: 25px;
    }

    .subtitle {
        margin-bottom: 26px;
        font-size: 14px;
    }

    .form {
        margin-bottom: 18px;
    }

    .consent-text {
        font-size: 13px;
    }
}


/* ========================================
   TABLETS AND DESKTOP
   ======================================== */

@media screen and (min-width: 601px) {

    #register-section {
        flex: 0 0 auto;

        max-width: 600px;

        margin: auto;
        padding: 40px 24px;
    }

    .form-box {
        padding: 32px 40px;
    }

    .form-logo {
        margin-bottom: 40px;
    }

    .form-logo img {
        width: 130px;
    }

    #register-section h1 {
        font-size: 38px;
    }

    .subtitle {
        margin-bottom: 36px;
        font-size: 17px;
    }

    .form {
        margin-bottom: 24px;
    }

    .form > label {
        font-size: 16px;
    }

    #register-section input:not([type="checkbox"]):not([type="hidden"]),
    #register-section select {
        min-height: 56px;
        font-size: 17px;
    }

    .consent-text {
        font-size: 15px;
    }

    .button-group button {
        min-height: 60px;
        font-size: 21px;
    }
}


/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ========================================
   CENTERED LOGO
   ======================================== */

.form-logo {
    text-align: center;
}

.form-logo img {
    margin-left: auto;
    margin-right: auto;
}
/* ========================================
   EMPTY TITLE AND LOGO SPACING
   ======================================== */

#register-section h1:empty {
    display: none;
}

.form-logo {
    margin-bottom: 16px;
}

@media screen and (min-width: 601px) {

    .form-logo {
        margin-bottom: 20px;
    }
}