/* Ensure no default margins/padding on body */
body {
    margin: 0 10%;
    padding: 0;
    width: 80%;
    font-family: Arial, sans-serif;
}

img {
  max-height: 350px; /* Sets a maximum height of 500 pixels */
  width: 100%;      /* Ensures the aspect ratio is maintained */
}




/* Style the banner image */
.header {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px; /* Small gap below banner */
}

/* Style the nav element */
nav {
    display: flex;
    background: #2E7D32; /* Dark green background */
    margin: 0;
    padding: 0;
    border-top-left-radius: 8px; /* Rounded top-left corner */
    border-top-right-radius: 8px; /* Rounded top-right corner */
    overflow: hidden; /* Clip link backgrounds to maintain rounded corners */
}

/* Style nav links */
nav a {
    flex: 1; /* Equal width for all links */
    text-align: center; /* Center text */
    text-decoration: none; /* No underlines */
    color: white; /* White text */
    padding: 10px; /* Vertical padding for clickable area */
    border-left: 1px solid #555; /* Left border */
    border-right: 1px solid #555; /* Right border */
    transition: background 0.3s, color 0.3s; /* Smooth hover and selected effect */
}

/* Hover effect for links (unless selected) */
nav a:hover:not(.selected) {
    background: #388E3C; /* Lighter green on hover */
}

/* Selected tab styling */
nav a.selected {
    background-color: #FFCA28; /* Bright yellow for selected tab */
    color: #2E7D32; /* Dark green text */
}

/* Remove outer borders for first and last links to avoid double borders */
nav a:first-child {
    border-left: none;
}

nav a:last-child {
    border-right: none;
}

/* Style content div to remove gap */
#content {
    margin: 0;
    padding: 20px;
    min-height: 200px; /* Prevent collapse, adjust as needed */
}

/* Form styling */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error {
    color: red;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Dynamic fields styling for sitting.html */
.dynamic-fields .form-group {
    margin-bottom: 15px;
}

/* Section headings to match taxi.html */
h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #2E7D32; /* Match nav background for consistency */
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ddd;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
    text-align: left;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    nav {
        flex-direction: column; /* Stack links vertically */
        border-radius: 0; /* Remove rounded corners on small screens */
        overflow: visible; /* Allow content to flow naturally on mobile */
    }
    
    nav a {
        border-left: none; /* Remove side borders */
        border-right: none;
        border-top: 1px solid #555; /* Add top border */
        border-bottom: 1px solid #555; /* Add bottom border */
    }
    
    nav a:first-child {
        border-top: none;
    }
    
    nav a:last-child {
        border-bottom: none;
    }

    .container {
        padding: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Larger text for mobile */
    }
}