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

/* BASE */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #003366;
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 5px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* SECTIONS */
section {
    padding: 80px 10%;
}

/* CENTRED HEADINGS */
section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    background: linear-gradient(to right, #003366, #0055aa);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 120px; /* prevents overlap with navbar */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* BUTTON */
.button {
    display: inline-block;
    background: white;
    color: #003366;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
}

.button:hover {
    background: #f0f0f0;
}

/* SUBJECT GRID */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* CARDS */
.card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* PRICING */
.pricing-box {
    max-width: 500px;
    margin: auto;
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

/* CONTACT */
#contact p {
    text-align: center;
}

/* FOOTER */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 5%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 8px 0;
    }

    /* Card-style container around the form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
}

/* Make iframe fit nicely inside */
.form-container iframe {
    width: 100%;
    height: 850px;
    border: none;
    border-radius: 8px;
}

/* Mobile optimisation */
@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }

    .form-container iframe {
        height: 750px;
    }
}
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial-card {
    background: #f8f9fb;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #003366;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-style: italic;
    margin-bottom: 15px;
    color: #444;
}

.author {
    font-weight: bold;
    color: #003366;
    text-align: right;
}

nav {
    transition: transform 0.3s ease;
}
