:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f8fafc;
    --text: #1e293b;
    --error: #ef4444;
    --success: #22c55e;
    --white: #ffffff;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container formularza */
#newsletterForm {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input */
input[type="email"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Przycisk */
#submitButton {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#submitButton:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

#submitButton:active:not(:disabled) {
    transform: scale(0.98);
}

#submitButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Powiadomienia (Toasty) */
.notifications {
    position: fixed;
    bottom: 12px;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.toast {
    position: relative;
    align-self: center;
    min-width: 320px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pasek postępu na dole */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    animation: progress 3s linear forwards;
}

.toast.success::after { background-color: var(--success); }
.toast.error::after { background-color: var(--error); }

.toast strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
}

.toast p {
    font-size: 0.85rem;
    color: #4a5568;
}

/* Animacje */
@keyframes slideIn {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}