:root {
    --primary: #ff3d52;
    --primary-hover: #de4051;
    --text-dark: #333333;
    --text-light: #574240;
    --bg-color: #fcfcfc;
    --font-heading: 'Playfair Display', 'Book Antiqua', serif;
    --font-body: 'Lato', Arial, Helvetica, sans-serif;
    --font-label: 'Open Sans', Arial, Helvetica, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
    width: 100%;
}

.content-side {
    flex: 1;
    padding: 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-side {
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.form-side {
    background-color: #f4f4f4;
    position: relative;
    z-index: 1;
    align-items: center; /* Centrowanie kontenera formularza */
    justify-content: center;
}

.form-side::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(255,61,82,0.05) 0%, rgba(0,0,0,0) 100%);
    z-index: -1;
}

header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.brand-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo span {
    color: var(--primary);
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-light);
    opacity: 0.7;
}

.badge {
    background-color: rgba(255, 61, 82, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-text {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.08;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 92%;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04), 0 2px 10px rgba(0,0,0,0.02);
    padding: 20px 10px 10px;
    border: 1px solid rgba(0,0,0,0.03);
    animation: fadeInUp 0.8s ease backwards;
}

/* Enhancing MailerLite overrides to fit our rounded design */
#mlb2-38126073.ml-form-embedContainer .ml-form-embedWrapper {
    box-shadow: none !important;
}

#mlb2-38126073.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input,
#mlb2-38126073.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    height: 50px !important;
    border-radius: 12px !important;
}

#mlb2-38126073.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

#mlb2-38126073.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,61,82,0.3) !important;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    animation: fadeInUp 0.6s ease backwards 0.1s;
}

.hero-text {
    animation: fadeInUp 0.6s ease backwards 0.2s;
}

.form-wrapper {
    animation: fadeInUp 0.6s ease backwards 0.3s;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.6;
    background: linear-gradient(to top, var(--bg-color) 70%, transparent);
    z-index: 10;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s ease;
}

.site-footer a:hover { opacity: 0.8; }

/* Responsive */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
    }

    .content-side {
        padding: 5% 5%;
        max-width: 100%;
        min-height: auto;
    }

    .form-side {
        padding: 5% 5% 5%;
    }

    .title {
        font-size: 2.6rem;
    }

    .brand-logo {
        height: 120px;
    }

    .logo {
        font-size: 2rem;
    }

    .site-footer {
        position: static;
        background: var(--bg-color);
        opacity: 1;
        padding: 16px 20px;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
}
