 /* Base styles */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background-color: #f6e2c1;
    overflow-x: hidden;
    margin-top: 20%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #ffd166;
}

.subtitle {
    font-size: 1.2rem;
    color: #4a4e69;
    margin-bottom: 20px;
}

/* Floating elements */
.floating {
    position: absolute;
    animation-name: float;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.cloud {
    width: 100px;
    height: 60px;
    background-color: white;
    border-radius: 50px;
    position: absolute;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cloud:before, .cloud:after {
    content: '';
    background-color: white;
    position: absolute;
    border-radius: 50%;
}

.cloud:before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud:after {
    width: 70px;
    height: 70px;
    top: -35px;
    right: 15px;
}

.cloud1 {
    top: 50px;
    left: -50px;
    animation-delay: 0s;
}

.cloud2 {
    top: 100px;
    right: -30px;
    transform: scale(0.7);
    animation-delay: 1s;
}

.star {
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-bottom: 7px solid #ffd166;
    border-left: 10px solid transparent;
    transform: rotate(35deg);
}

.star:before {
    border-bottom: 8px solid #ffd166;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    position: absolute;
    top: -5px;
    left: -6px;
    content: '';
    transform: rotate(-35deg);
}

.star:after {
    position: absolute;
    display: block;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-bottom: 7px solid #ffd166;
    border-left: 10px solid transparent;
    transform: rotate(-70deg);
    content: '';
}

.star1 {
    top: 30px;
    left: 150px;
    animation-delay: 0.5s;
}

.star2 {
    top: 70px;
    right: 180px;
    transform: scale(0.6) rotate(35deg);
    animation-delay: 1.5s;
}

.star3 {
    bottom: 50px;
    left: 80px;
    transform: scale(0.8) rotate(35deg);
    animation-delay: 2s;
}

/* Subscription form */
.subscription-form {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.subscription-form:hover {
    transform: translateY(-5px);
}

.form-title {
    font-size: 1.8rem;
    color: #6a5acd;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #4a4e69;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #e0e0ff;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f7f7ff;
}

.form-input:focus {
    border-color: #6a5acd;
    outline: none;
    box-shadow: 0 0 10px rgba(106, 90, 205, 0.3);
}

.form-button {
    background-color: #6a5acd;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    background-color: #5649ac;
    transform: scale(1.03);
}

.form-button:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    z-index: -1;
}

.form-button:hover:before {
    animation: shine 1.5s;
}

/* Plans section */
.plans {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.plan-card {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.plan-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
}

.plan-basic:before {
    background-color: #4cc9f0;
}

.plan-premium:before {
    background-color: #f72585;
}

.plan-family:before {
    background-color: #7209b7;
}

.plan-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #6a5acd;
}

.plan-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #4a4e69;
}

.plan-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6a5acd;
    font-weight: bold;
}

.plan-button {
    background-color: transparent;
    border: 2px solid #6a5acd;
    color: #6a5acd;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.plan-button:hover {
    background-color: #6a5acd;
    color: white;
}

/* Character */
.character {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    z-index: 2;
}

.character-body {
    width: 70px;
    height: 70px;
    background-color: #ff6b6b;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: bounce 2s infinite;
}

.character-eye {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    top: 20px;
}

.character-eye:after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: black;
    border-radius: 50%;
    top: 4px;
    left: 4px;
    animation: blink 3s infinite;
}

.character-eye-left {
    left: 15px;
}

.character-eye-right {
    right: 15px;
}

.character-mouth {
    position: absolute;
    width: 30px;
    height: 10px;
    background-color: white;
    border-radius: 0 0 20px 20px;
    bottom: 15px;
    left: 20px;
    overflow: hidden;
}

.character-mouth:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 5px;
    background-color: #ff9a9a;
    bottom: 0;
    border-radius: 10px 10px 0 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes blink {
    0%, 45%, 55%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.1);
    }
}

/* Thank you modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: popIn 0.5s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.thank-you-title {
    font-size: 2rem;
    color: #6a5acd;
    margin-bottom: 20px;
}

.thank-you-message {
    font-size: 1.1rem;
    color: #4a4e69;
    margin-bottom: 30px;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .plans {
        flex-direction: column;
    }
    
    .plan-card {
        width: 100%;
    }
    
    .character {
        display: none;
    }
}
