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

/* ===== BODY ===== */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER / NAV ===== */
header {
    background: #8e7cc3;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a:hover {
    color: #6f5bb0;
    text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
    height: 80vh;
    background-color: #d8cfff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8e7cc3;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: #4b3c8a;
    transition: opacity 0.3s ease;
}

.hero-text h1:hover {
    opacity: 0.9;
}

.hero-text p {
    font-size: 1.2rem;
    color: #4b3c8a;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-photo {
        width: 120px;
        height: 120px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* ===== ABOUT ===== */
.about {
    background: #f4f0fa;
    padding: 80px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2.2rem;
    color: #4b3c8a;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

.about-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #8e7cc3;
}

.about-text p {
    font-size: 1.1rem;
    color: #4b3c8a;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        width: 100px;
        height: 100px;
    }

    .about-text p {
        text-align: center;
    }
}

/* ===== SERVICES ===== */
.services-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 2.2rem;
    color: #4b3c8a;
    margin-bottom: 40px;
}

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

.service-card {
    background: #f4f0fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0d6f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card h3 {
    color: #8e7cc3;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #4b3c8a;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(111, 91, 176, 0.2);
}

/* ===== FEES ===== */
.fees-section {
    background: #f4f0fa;
    padding: 80px 20px;
    text-align: center;
}

.fees-section h2 {
    font-size: 2.2rem;
    color: #4b3c8a;
    margin-bottom: 40px;
}

.fees-content p {
    font-size: 1.1rem;
    color: #4b3c8a;
    margin-bottom: 10px;
}

/* ===== FAQ ===== */
.faq-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.faq-section h2 {
    font-size: 2.2rem;
    color: #4b3c8a;
    margin-bottom: 40px;
}

.faq-item {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
    transition: color 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    color: #6f5bb0;
}

.faq-item h3 {
    color: #8e7cc3;
    margin-bottom: 5px;
}

.faq-item p {
    font-size: 1rem;
    color: #4b3c8a;
}

/* ===== CONTACT FORM ===== */
.contact form {
    max-width: 650px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-family: inherit;
}

/* Inputs & Textarea */
.contact input,
.contact textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: #999;
    font-style: italic;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #8e7cc3;
    box-shadow: 0 0 10px rgba(142, 124, 195, 0.25);
    outline: none;
}

/* Remove spinner arrows from number input */
input[type=number] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    margin: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== CONCERNS CHECKBOXES ===== */
.contact fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.contact fieldset legend {
    font-weight: 700;
    color: #4b3c8a;
    padding: 0 5px;
    font-size: 1.1rem;
}

.contact fieldset label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    flex: 1 1 45%;
    white-space: normal;
    line-height: 1.4;
    user-select: none;
}

.contact fieldset label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #8e7cc3;
}

/* Responsive labels for small screens */
@media (max-width: 600px) {
    .contact fieldset label {
        flex: 1 1 100%;
    }
}

/* Textarea */
.contact textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.contact button {
    background: #8e7cc3;
    color: #fff;
    font-size: 1rem;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact button:hover {
    background: #6f5bb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 91, 176, 0.3);
}

/* Success message */
#success-message {
    display: none;
    color: #6f5bb0;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    background: #8e7cc3;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ===== FADE-IN ANIMATIONS FOR SECTIONS ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}