/* Global settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--Platonic);
    min-height: 100vh;
}

:root {
    --Platonic: #F5F5F5;
    --Napisy: #171940;
    --Niebieski: #3B82F6;
    --NiebieskiHover: #3a72cc;
    --CiemnyNeibieski: #171940;
    --JasnyNiebieski: #5E93F0;
    --Fioletowy: #7471D9;
    --FioletowyHover: #5f5cbd;
    --CiemnyFioletowy1: #3A2390;
    --CiemnyFioletowy2: #3E0C60;
    --SzaryTeskt: #303030;
    --JasnySzary: #A9A9A9;
    --JasnyBiały: #F8F8F8;
    --JasnoSzaryTekst: #5b5b5b;
}

.clear {
    clear: both;
}

/* Nav settings */

/* --- Główny kontener nawigacji --- */
.mainnavigation {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    z-index: 999999;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Klasa dodawana prawdopodobnie przez JS przy scrollowaniu */
.mainnavigation.scroll-nav {
    background-color: var(--Platonic);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(116, 113, 217, 0.2);
}

.navigation-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1920px;
}

/* --- Logo (obrazek) --- */
.mainimagesplatonic {
    margin-left: 22px;
    transition: transform 0.3s ease;
}

.mainimagesplatonic:hover {
    transform: rotate(-5deg) scale(1.05);
}

.mainplatonictitle-link {
    padding-left: 7px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    display: flex;
    align-items: center;
    color: var(--Napisy);
    text-decoration: none;
}

/* --- Responsywność (Media Queries) --- */
@media (max-width: 1300px) {
    .mainplatonictitle-link {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .mainimagesplatonic {
        margin-left: 15px;
    }

    .mainplatonictitle-link {
        font-size: 26px;
        padding-left: 5px;
    }
}

/* Main section */

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 90px; 
    display: flex;
    justify-content: center;
}

/* Animated Background - light version with math symbols */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f4f8 50%, #f5f0ff 100%);
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: float 30s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    top: 30%;
    right: -10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    bottom: -10%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    top: 50%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.math-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.math-symbol {
    position: absolute;
    font-size: 70px;
    font-weight: 300;
    color: rgba(59, 130, 246, 0.12);
    animation: floatGentle 25s infinite ease-in-out;
    font-family: 'Times New Roman', serif;
    user-select: none;
    pointer-events: none;
}

.math-symbol:nth-child(1) { 
    left: 5%; 
    top: 10%;
    animation-delay: 0s; 
    color: rgba(59, 130, 246, 0.15);
}
.math-symbol:nth-child(2) { 
    left: 15%; 
    top: 60%;
    animation-delay: 3s; 
    font-size: 55px;
    color: rgba(16, 185, 129, 0.13);
}
.math-symbol:nth-child(3) { 
    left: 25%; 
    top: 30%;
    animation-delay: 6s; 
    font-size: 80px;
    color: rgba(139, 92, 246, 0.12);
}
.math-symbol:nth-child(4) { 
    left: 35%; 
    top: 75%;
    animation-delay: 2s; 
    font-size: 65px;
    color: rgba(59, 130, 246, 0.14);
}
.math-symbol:nth-child(5) { 
    left: 50%; 
    top: 20%;
    animation-delay: 9s; 
    font-size: 58px;
    color: rgba(245, 158, 11, 0.13);
}
.math-symbol:nth-child(6) { 
    left: 60%; 
    top: 50%;
    animation-delay: 5s; 
    font-size: 75px;
    color: rgba(16, 185, 129, 0.14);
}
.math-symbol:nth-child(7) { 
    left: 75%; 
    top: 80%;
    animation-delay: 8s; 
    font-size: 60px;
    color: rgba(139, 92, 246, 0.13);
}
.math-symbol:nth-child(8) { 
    left: 85%; 
    top: 15%;
    animation-delay: 11s; 
    font-size: 68px;
    color: rgba(59, 130, 246, 0.12);
}
.math-symbol:nth-child(9) { 
    left: 12%; 
    top: 40%;
    animation-delay: 13s; 
    font-size: 62px;
    color: rgba(245, 158, 11, 0.14);
}
.math-symbol:nth-child(10) { 
    left: 68%; 
    top: 65%;
    animation-delay: 4s; 
    font-size: 72px;
    color: rgba(16, 185, 129, 0.12);
}

@keyframes floatGentle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        transform: translate(50px, -80px) rotate(30deg);
    }
    40% {
        transform: translate(-30px, -120px) rotate(60deg);
    }
    60% {
        transform: translate(70px, -180px) rotate(90deg);
        opacity: 1;
    }
    80% {
        transform: translate(-20px, -240px) rotate(120deg);
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translate(30px, -300px) rotate(150deg);
        opacity: 0;
    }
}

.form-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 110px;
    padding: 0 20px;
    z-index: 2;
}

.form-header {
    text-align: center;
    margin-bottom: 48px;
}

.form-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--Napisy);
    margin-bottom: 12px;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 18px;
    color: var(--JasnoSzaryTekst);
    font-weight: 400;
    line-height: 1.5;
}

.school-form {
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(116, 113, 217, 0.08);
    border: 1px solid rgba(116, 113, 217, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--Napisy);
    margin-bottom: 8px;
    display: block;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--Napisy);
    background: var(--JasnyBiały);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--JasnySzary);
}

.form-input:focus,
.form-select:focus {
    background: white;
    border-color: var(--Fioletowy);
    box-shadow: 0 0 0 4px rgba(116, 113, 217, 0.1);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: rgba(116, 113, 217, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23171940' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-select option[disabled] {
    color: var(--JasnySzary);
}

.form-error {
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

.form-error:empty {
    display: none;
}

.form-submit-btn {
    width: 100%;
    padding: 16px 32px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--Fioletowy) 0%, var(--CiemnyFioletowy1) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(116, 113, 217, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(116, 113, 217, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-privacy {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(116, 113, 217, 0.1);
}

.privacy-text {
    font-size: 14px;
    color: var(--JasnoSzaryTekst);
}

.privacy-link {
    color: var(--Fioletowy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--FioletowyHover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-wrapper {
        margin: 60px auto 60px;
    }

    .form-header {
        margin-bottom: 36px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-subtitle {
        font-size: 16px;
    }

    .school-form {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-submit-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        margin: 50px auto 40px;
        padding: 0 16px;
    }

    .form-header {
        margin-bottom: 28px;
    }

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

    .form-subtitle {
        font-size: 15px;
    }

    .school-form {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .form-row {
        gap: 16px;
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .form-select {
        background-position: right 14px center;
        padding-right: 40px;
    }

    .form-error {
        font-size: 12px;
        margin-top: 4px;
    }

    .form-submit-btn {
        font-size: 15px;
        padding: 13px 24px;
        margin-top: 12px;
        border-radius: 10px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .form-privacy {
        margin-top: 20px;
        padding-top: 20px;
    }

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

@media (max-width: 360px) {
    .form-title {
        font-size: 22px;
    }

    .school-form {
        padding: 20px 16px;
    }

    .form-input,
    .form-select {
        padding: 11px 12px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .form-wrapper {
        max-width: 1000px;
    }

    .school-form {
        padding: 56px;
    }
}

/* Add school style */

.add_main-wrapper {
    height: auto;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.add_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.add_hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.add_content-card {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: add_fadeInUp 0.6s ease-out;
}

@keyframes add_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.add_title-wrapper {
    margin-bottom: 1.5rem;
}

.add_gradient-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--Niebieski), var(--Fioletowy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.add_description-wrapper {
    margin-bottom: 2rem;
}

.add_description-text {
    font-size: 1.125rem;
    color: var(--JasnoSzaryTekst);
    line-height: 1.7;
}

.add_action-wrapper {
    margin-top: 2rem;
}

.add_primary-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--Fioletowy);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 113, 217, 0.2);
}

.add_primary-button:hover {
    background: var(--FioletowyHover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 113, 217, 0.4);
}

.add_primary-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(116, 113, 217, 0.3);
}

@media (max-width: 768px) {
    .add_main-wrapper {
        min-height: calc(100vh - 90px);
        padding: 1.5rem 1rem;
    }

    .add_content-card {
        padding: 2rem 1.5rem;
    }

    .add_gradient-title {
        font-size: 2rem;
    }

    .add_description-text {
        font-size: 1rem;
    }

    .add_primary-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .add_gradient-title {
        font-size: 1.75rem;
    }

    .add_description-text {
        font-size: 0.9375rem;
    }

    .add_content-card {
        padding: 1.75rem 1.25rem;
    }

    .add_primary-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

.add_text-center {
    text-align: center;
}

.add_flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add_shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.add_shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.add_rounded {
    border-radius: 12px;
}

.add_rounded-lg {
    border-radius: 20px;
}