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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.newsletter-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 30% 70% 20%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 400px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 200px;
    height: 250px;
    bottom: -80px;
    left: -30px;
    animation-delay: 2s;
    transform: rotate(-30deg);
}

.shape-3 {
    width: 150px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
    transform: rotate(60deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 10deg)); }
}

.newsletter-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    max-width: 250px; /* Adjust as needed */
    height: auto;
    display: block; /* To center with margin auto */
    margin: 0 auto; /* Center the image */
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.newsletter-form-section {
    text-align: center;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.form-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.newsletter-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #0d6efd;
    border-color: #0d6efd;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.link {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

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

.submit-btn.loading {
    pointer-events: none;
}

.btn-text,
.btn-loading {
    transition: opacity 0.3s ease;
}

.btn-loading {
    display: none;
    opacity: 0;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    display: block;
    opacity: 1;
}

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #00c851 0%, #00a142 100%);
    color: white;
    border-radius: 16px;
    margin-top: 1.5rem;
    animation: successSlide 0.5s ease-out;
}

.success-message.show {
    display: block;
}

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

.success-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.success-message p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-container {
        padding: 1rem;
    }
    
    .newsletter-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .shape-1 {
        width: 200px;
        height: 250px;
    }
    
    .shape-2 {
        width: 150px;
        height: 180px;
    }
    
    .shape-3 {
        width: 100px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .newsletter-content {
        padding: 1.5rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    .brand-logo {
        max-width: 200px; /* Smaller on mobile */
    }
}