/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body styling */
body {
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Main container */
.container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* max-width: 550px; */
    width: 550px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Heading */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ff4757;
}

/* Description paragraph */
p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

/* Countdown timer layout */
.countdown {
    width: 100%;
    height: auto;
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.time {
    background-color: #ff4757;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100px;
    height: auto;
    transition: transform 0.2s ease-in-out;
}

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

.time span {
    font-size: 2rem;
    font-weight: bold;
}

.time p {
    font-size: 1rem;
    margin-top: 5px;
    color: #fff;
}

/* Subscription form */
.subscribe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.subscribe input[type="email"] {
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid #ddd;
    outline: none;
    font-size: 1rem;
    width: 70%;
    max-width: 320px;
    transition: border-color 0.3s;
}

.subscribe input[type="email"]:focus {
    border-color: #ff4757;
}

.subscribe button {
    padding: 12px 25px;
    background-color: #ff4757;
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.subscribe button:hover {
    background-color: #e33f4c;
    transform: translateY(-3px);
}

/* Responsiveness for Tablets & Desktops */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .countdown {
        margin-bottom: 30px;
    }

    .time {
        width: 60px;
        padding: 15px;
    }

    .time span {
        font-size: 1.8rem;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .countdown {
        width: 100% !important;
        gap: 30px;
        flex-wrap: wrap !important;
    }

    .time {
        background-color: #ffffff;
        border: 1.2px solid #e33f4c;
        color: #222 !important;
        width: 100% !important;
        padding: 12px;
    }

    .time p{
        color: #333;
    }
    .time span {
        font-size: 1.5rem;
    }

    .subscribe input[type="email"] {
        width: 100%;
    }

    .subscribe button {
        width: 100%;
    }
}

/* Extra Small Screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.9rem;
    }

    .time {
        width: 50px;
        padding: 10px;
    }

    .time span {
        font-size: 1.4rem;
    }
}

/* Mobile landscape responsiveness */
@media screen and (max-width: 480px) and (orientation: landscape) {
    .container {
        max-width: 90%;
        padding: 20px 10px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .time span {
        font-size: 1.2rem;
    }

    .subscribe button, .subscribe input {
        width: 100%;
    }
}
