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

html{
scroll-behavior:smooth;
}

body{
background:#f7f7f7;
}


/* NAVBAR */
#logo-container-form{
    cursor: pointer;
}

header{

position:fixed;
top:0;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;

padding:20px 7%;

background:rgba(255,255,255,.95);

backdrop-filter:blur(10px);

z-index:1000;

box-shadow:0 2px 15px rgba(0,0,0,.08);

}

.logo{
height:55px;
margin-right:10px;
}

#mainLogo{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#logo-container-form{

display:flex;
align-items:center;
cursor: pointer;

}

nav ul{

display:flex;
gap:35px;
list-style:none;

flex-wrap:wrap;
justify-content:center;

}

nav a{

text-decoration:none;
color:#222;
font-weight:500;
transition:.4s;
position:relative;

}

nav a::after{

content:'';

position:absolute;

width:0;
height:2px;

background:#800020;

left:0;
bottom:-5px;

transition:.4s;

}

#homeLink {
    font-weight: 600;
    font-size: 20px;
    border: 2px solid #000000;
    padding: 12px 18px;
    border-radius: 999px;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
    background: rgba(255,255,255,0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#homeLink:hover{
    background: #f5f5f5;
    transform: translateY(-1px);
}

@media(max-width:768px){
    header{
        padding:15px 5%;
        flex-wrap:wrap;
        gap:12px;
    }

    nav ul{
        gap:0;
        width:100%;
        justify-content:center;
    }

    nav a{
        display:inline-block;
        width:100%;
        text-align:center;
        padding:10px 0;
    }

    #homeLink{
        font-size:18px;
        padding:12px 14px;
        width:100%;
        box-sizing:border-box;
    }
}

/* General Page Styling */
body {
    background-color: #F8F9FA;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 120px;
}

/* Form Container - Matches "Student Reviews" card style */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #801A24; /* Maroon */
    margin-bottom: 10px;
}

.note-bubble {
    max-width: 520px;
    margin: 0 auto 30px auto;
    padding: 18px 22px;
    background: #fff6f7;
    border: 1px solid #f2d3d6;
    border-radius: 20px;
    color: #6f2a33;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(128, 26, 36, 0.08);
    position: relative;
}

.note-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 35px;
    width: 0;
    height: 0;
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: #fff6f7 transparent transparent transparent;
}

/* Form Elements */
#tutorForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea {
    padding: 17px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

input:focus, select:focus, textarea:focus {
    border-color: #801A24;
    outline: none;
    box-shadow: 0 0 5px rgba(128, 26, 36, 0.2);
}

label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button - Matches "Book Here" button style */
button[type="submit"] {
    background-color: #801A24;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #60121A;
}

/* Utility classes */
.hidden {
    display: none;
}
.form-container h2 {
    color: #000000;
    font-size: 20px; 
    margin: 15px;
    margin-left: 0;
}

label {
    margin-top: 20px;
    margin-bottom: 10px;
}

#recurringLengthSelect{
margin-top: 12px;
}

#recurrenceFormat{
margin-top: 12px;
}


footer{
    background:#222;
    color:white;
    display:flex;
    justify-content:space-between;
    gap:40px;
    padding:60px 10%;
}

.footer-left,
.footer-right{
    max-width:48%;
}

.footer-right form{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.footer-right input{
    padding:12px;
    border:none;
    border-radius:8px;
    margin-right:10px;
    flex:1;
    min-width:220px;
}

.footer-right button{
    padding:12px 20px;
    background:#800020;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
    min-width:130px;
}

@media(max-width:768px){
    footer{
        flex-direction:column;
        align-items:center;
        padding:40px 5%;
        text-align:center;
    }

    .footer-left,
    .footer-right{
        max-width:100%;
        width:100%;
    }

    .footer-right form{
        flex-direction:column;
        align-items:stretch;
    }

    .footer-right input,
    .footer-right button{
        width:100%;
        margin-right:0;
    }

    .footer-right button{
        margin-top:10px;
    }
}

@media(max-width:480px){
    header{
        padding:16px 4%;
    }

    .logo{
        height:45px;
    }

    #mainLogo{
        font-size:20px;
    }

    #homeLink{
        font-size:16px;
        padding:11px 14px;
    }

    .form-container{
        margin:20px 16px;
        padding:30px 20px;
    }

    .note-bubble{
        margin-bottom:24px;
        padding:16px 18px;
        font-size:14px;
    }

    footer{
        padding:30px 4%;
    }
}

.note-bubble {
    text-align: center;
}