/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f4f4;
    color: #333;
    padding: 10px;
}

/* Brand Header */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #f7f9fc;
    border-bottom: 2px solid #d1e7ff;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.brand-header img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.brand-header img:hover {
    transform: scale(1.1);
}

.brand-header .brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: bold;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Offer Container */
.offer-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s;
}

.offer-container:hover {
    transform: translateY(-5px);
}

/* Step Header */
header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subheading {
    font-size: 0.95em;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #dfe6e9;
    height: 8px;
    border-radius: 5px;
    margin: 15px 0 20px;
    overflow: hidden;
}

.progress {
    width: 33%;
    background-color: #27ae60;
    height: 100%;
    transition: width 0.6s ease;
}

/* Trust Badges */
.trust-badges {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Offer Description */
.offer-description p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

/* Benefits Section */
.offer-benefits h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f5f9fd;
    padding: 20px;
    width: calc(50% - 15px);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #d1e7ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9em;
    color: #5d6d7e;
    line-height: 1.4;
}

/* CTA Button */
#claim-offer {
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #d71a28;
    color: #fff;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

#claim-offer:hover {
    background-color: #2980b9;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.6);
}

/* Social Proof */
.social-proof {
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

.social-proof h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.social-proof p {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Rotating Text Animation */
.animated-text {
    display: inline-block;
    font-weight: bold;
    color: #e74c3c;
    animation: fade-in-out 4s infinite;
}

@keyframes fade-in-out {
    0%, 20%, 80%, 100% {
        opacity: 0;
    }
    40%, 60% {
        opacity: 1;
    }
}

/* Fade Transitions */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Pulse Effect for Button */
#claim-offer.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Counter Container Styles */
.counter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fffef7;
    border: 2px solid #f1c40f;
    border-radius: 10px;
    padding: 15px 25px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.counter-logo {
    width: 60px; /* Enlarged size */
    height: auto;
    flex-shrink: 0;
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: #444;
    flex: 1;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.counter-content .animated-counter {
    font-weight: bold;
    color: #d71a28;
    font-size: 1.5em;
}

.counter-content p {
    margin: 0;
}

.counter-btn {
    padding: 10px 20px;
    background: #d71a28;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    font-size: 1em;
}

.counter-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .counter-container {
        max-width: 450px;
    }
}

@media (max-width: 600px) {
    .offer-container {
        padding: 25px 20px;
    }

    .benefit-cards {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        width: 100%;
    }

    .trust-badges {
        gap: 10px;
    }

    #claim-offer {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    header h1 {
        font-size: 1.5em;
    }

    .offer-benefits h2 {
        font-size: 1.3em;
    }

    .card img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .card h3 {
        font-size: 1em;
    }

    .card p {
        font-size: 0.85em;
    }

    .social-proof h3 {
        font-size: 1em;
    }

    .social-proof p {
        font-size: 0.9em;
    }

    /* Brand Header Adjustments for Mobile */
    .brand-header img {
        width: 100px;
    }

    .brand-header .brand-name {
        font-size: 1em;
    }

    /* Counter Adjustments for Mobile */
    .counter-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        max-width: 100%;
    }

    .counter-logo {
        width: 50px; /* Slightly reduced for smaller screens */
    }

    .counter-content {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .counter-content .animated-counter {
        font-size: 1.3em;
    }

    .counter-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}
