:root {
    --brand-blue: #343393;
    --brand-blue-dark: #292875;
    --heading-color: #102b49;
    --text-main: #252525;
    --text-muted: #666666;
    --border-color: #d5d9de;
    --background-light: #f4f6f8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--background-light);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.page-content {
    padding: 64px 20px;
}

.newsletter-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Blue header with the white Kalliwoda logo */
.newsletter-header {
    min-height: 110px;
    padding: 18px 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--brand-blue);
}

.newsletter-header-logo {
    display: block;
    width: auto;
    max-width: 280px;
    max-height: 72px;
    object-fit: contain;
}

.newsletter-body {
    padding: 42px;
}

.newsletter-heading {
    margin-bottom: 30px;
}

.newsletter-heading h1 {
    margin: 0 0 12px;
    color: var(--heading-color);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-intro {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.form-group label,
.interest-section legend {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background-color: var(--white);
    color: var(--text-main);
    font-size: 16px;
}

.form-group input:focus {
    border-color: var(--brand-blue);
    outline: 2px solid rgba(52, 51, 147, 0.15);
}

.interest-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.interest-section legend {
    margin-bottom: 4px;
}

.checkbox-row {
    display: flex;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.checkbox-row:hover {
    border-color: var(--brand-blue);
    background-color: #f8f8fc;
}

.checkbox-row input,
.consent-row input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brand-blue);
}

.checkbox-row span {
    display: flex;
    flex-direction: column;
}

.checkbox-row strong {
    color: var(--text-main);
    font-size: 14px;
}

.checkbox-row small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 13px;
}

.consent-row {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.consent-row a {
    color: var(--brand-blue);
}

.subscribe-button {
    align-self: flex-start;
    padding: 12px 26px;
    border: 1px solid var(--brand-blue);
    border-radius: 2px;
    background-color: var(--brand-blue);
    color: var(--white);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.subscribe-button:hover {
    background-color: var(--brand-blue-dark);
}

.form-note {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* Tablet and phone layout */
@media (max-width: 640px) {
    .page-content {
        padding: 16px 10px;
    }

    .newsletter-section {
        width: 100%;
        margin: 0;
    }

    .newsletter-header {
        min-height: 82px;
        padding: 14px 18px;
    }

    .newsletter-header-logo {
        max-width: 210px;
        max-height: 54px;
    }

    .newsletter-body {
        padding: 24px 18px 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .newsletter-heading h1 {
        font-size: 25px;
    }

    .newsletter-intro {
        font-size: 15px;
    }

    .checkbox-row {
        padding: 12px;
    }

    .checkbox-row small {
        font-size: 12px;
    }

    .subscribe-button {
        width: 100%;
        text-align: center;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .newsletter-body {
        padding: 20px 14px 24px;
    }

    .newsletter-heading h1 {
        font-size: 22px;
    }

    .newsletter-header-logo {
        max-width: 190px;
    }
}

/* Success page */
.success-body {
    text-align: center;
}

.success-icon {
    display: flex;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #eef3ff;
    color: var(--brand-blue);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.success-heading {
    margin-bottom: 20px;
}

.success-message {
    max-width: 560px;
    margin: 0 auto 26px;
    color: var(--text-muted);
    font-size: 15px;
}

.success-message p {
    margin: 0 0 12px;
}

.success-button {
    display: inline-block;
    text-decoration: none;
}

@media (max-width: 640px) {
    .success-icon {
        width: 58px;
        height: 58px;
        font-size: 46px;
    }

    .success-message {
        font-size: 14px;
    }
}

.form-error {
    min-height: 20px;
    margin: 2px 0 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
}