﻿/* ============================
   Newsletter Subscription
============================ */

.newsletter-section {
    position: relative;
    z-index: 10;
    /* negative top margin to overlap footer */
}

.subscribe-box {
    max-width: 540px;
    margin: 0 auto;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: .75rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    z-index: 20; /* above footer */
    margin-bottom: -80px;
    transform: translateY(50px); /* start slightly below */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
    /* Active state: visible and in place */
    .subscribe-box.active {
        transform: translateY(0);
        opacity: 1;
    }

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group input {
        width: 100%;
        padding: .65rem 1rem;
        font-size: 1rem;
        border: 1px solid #ced4da;
        border-radius: .375rem;
        outline: none;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

        .form-group input:focus {
            border-color: #86b7fe;
            box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
        }

.subscribe-btn {
    width: 100%;
    padding: .75rem 1rem;
    background: #66C3EF;
    border: none;
    border-radius: 50rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color .15s;
}

    .subscribe-btn:hover {
        background: #0b5ed7;
    }

/* ============================
   FOOTER
============================ */
.footer {
    background-color: #010050;
    color: #fff;
    padding-top: 6rem; /* add enough padding so newsletter sits inside */
    padding-bottom: 2rem;
    text-align: center;
    position: relative;
}

/* Footer container */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer logo */
.footer-logo {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 160px;
}

/* Contact row */
.footer-contact-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Contact items */
.footer-contact-item {
    border: 1px solid #c0c0c0;
    border-radius: 50rem;
    padding: 0.45rem 1rem;
    min-width: 220px;
    text-align: center;
}

    /* Contact links */
    .footer-contact-item a {
        color: #c0c0c0;
        text-decoration: none;
        font-size: 0.85rem;
    }

/* Small text */
.footer-small {
    font-size: 0.75rem;
    margin: 0;
    color: #c0c0c0;
}

    .footer-small a {
        color: #c0c0c0;
        text-decoration: none;
    }

/* ============================
   Mobile Responsive Styling
============================ */

/* All screens below 600px */
@media (max-width: 600px) {

    .subscribe-box {
        padding: 2rem 1.5rem;
    }

    .subscribe-box .title {
        font-size: 1.6rem;
    }

    .subscribe-btn {
        font-size: 1rem;
        padding: 0.9rem;
    }

    .footer-contact-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-small {
        font-size: 0.78rem;
    }
}