* {
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box; /* Crucial for consistent sizing */
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif; /* Modern, readable sans-serif font */
    line-height: 1.6;
    color: #333; /* Darker grey for primary text for better contrast */
    background-color: #f0f2f5; /* Soft, light grey background for the entire page */
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale; /* Smoother font rendering */
}

.container {
    max-width: 1200px; /* Wider container for spacious layout */
    margin: 0 auto; /* Center content */
    padding: 0 25px; /* Ample side padding for mobile and desktop */
}

a {
    text-decoration: none;
    color: #007bff; /* Standard link blue */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Typography: Headings & Text Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Stronger, more elegant font for titles */
    color: #2c3e50; /* Deep charcoal for strong presence */
    margin-bottom: 0.8em; /* Consistent spacing below headings */
    line-height: 1.2; /* Tighter line height for headings */
}

h1 {
    font-size: 3.8em; /* Very large for primary impact */
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.03em; /* Slightly tighter letter spacing */
    margin-bottom: 0.5em; /* Closer to subtitle */
}

.hero-subtitle {
    font-size: 1.5em; /* Prominent and easy to read */
    font-weight: 400;
    max-width: 800px; /* Constrain width for readability */
    margin: 0.8em auto 2.5em auto; /* More vertical space above/below */
    color: #e0e0e0; /* Lighter color for contrast on hero background */
    line-height: 1.4;
}

h2.section-title {
    font-size: 2.8em; /* Substantial size for section breaks */
    font-weight: 600;
    text-align: center;
    margin-top: 0.5em; /* More space above */
    margin-bottom: 0.5em; /* Ample space below */
    color: #0056b3; /* A professional blue */
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.9em; /* Clear sub-headings */
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #34495e; /* Slightly softer than h1/h2 */
}

.form-introduction {
    font-size: 1.25em; /* Very clear instructions */
    margin-bottom: 2.5em; /* Significant space before the form fields start */
    text-align: center;
    color: #444;
    line-height: 1.5;
}

label {
    font-size: 1.1em; /* Larger, more prominent labels */
    font-weight: 500;
    margin-bottom: 0.6em; /* More space below label */
    display: block; /* Ensures label takes full width and input is on new line */
    color: #333;
}

.form-text-muted {
    font-size: 0.9em; /* Concise help text */
    color: #777;
    margin-top: 0.4em; /* Space above help text */
    display: block; /* Ensures it's on its own line */
}

/* --- Header & Navigation (Refined) --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); /* Slightly stronger shadow */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px; /* Increased padding for more breathing room */
    max-width: 1300px;
    margin: 0 auto;
}

.navbar .logo a {
    font-size: 2em; /* Slightly larger logo */
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 35px; /* Increased spacing between nav items */
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease, border-bottom 0.3s ease; /* Added border-bottom transition */
    padding-bottom: 3px; /* Space for the underline effect */
}

.nav-links a:hover {
    color: #007bff;
    border-bottom: 2px solid #007bff; /* Underline effect on hover */
}

/* For current page highlighting */
.nav-links li.current-page a {
    color: #007bff;
    font-weight: 700; /* Bolder for current page */
    border-bottom: 2px solid #007bff; /* Consistent underline for current page */
}

/* --- Hero Section: Emphasizing Visuals & Impact --- */
.hero-section {
    background-color: #007bff; /* Primary blue background */
    color: white;
    padding: 120px 0; /* More vertical padding for grandeur */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Use a high-quality, professional image for background */
    /*background-image: url('../images/student_housing_hero_bg.jpg');  **IMPORTANT: Replace with your actual high-res image** */
    background-size: cover; /* Cover the entire area */
    background-position: center center; /* Center the image */
    min-height: 500px; /* Ensure sufficient height */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* Slightly darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px; /* Ensure padding for content within hero */
}

.hero-btn {
    padding: 18px 35px; /* Larger, more inviting button */
    font-size: 1.3em; /* Larger text */
    font-weight: 600;
    border-radius: 50px; /* Pill-shaped button for modern look */
    background-color: #28a745; /* Vibrant green for primary action */
    border: 2px solid #28a745; /* Solid border */
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); /* Subtle shadow for depth */
}

.hero-btn:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-3px); /* More pronounced lift on hover */
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* --- Value Proposition Section: Clear Benefits --- */
.value-proposition-section {
    padding: 90px 0; /* Generous vertical padding */
    background-color: #ffffff; /* White background to make it pop */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Soft shadow below */
    margin-bottom: 60px; /* Space before the form section */
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible grid with good minimum width */
    gap: 40px; /* More space between items */
    margin-top: 4em; /* More space below title */
}

.value-prop-item {
    text-align: center;
    padding: 35px; /* More internal padding */
    background-color: #f8fafd; /* Very light blue tint for background */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Clearer shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid #e0e0e0; /* Subtle border */
}

.value-prop-item:hover {
    transform: translateY(-8px); /* More noticeable lift on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    background-color: #eaf3ff; /* Light blue highlight on hover */
}

.value-prop-item .icon-large {
    font-size: 4.5em; /* Even larger icons for prominence */
    color: #007bff; /* Primary color for icons */
    margin-bottom: 0.5em;
}

.value-prop-item h3 {
    font-size: 1.6em;
    margin-top: 0.5em; /* Adjusted margin */
    margin-bottom: 0.6em;
    color: #2c3e50;
}

.value-prop-item p {
    font-size: 1.05em;
    color: #666;
}

/* --- Form Section: Clean & Structured --- */
.form-section {
    padding: 70px 0 90px 0; /* More vertical padding for the whole section */
    background-color: #f9fbfd; /* Slightly different background for form section */
}

.form-card {
    background-color: #ffffff;
    padding: 50px; /* Generous padding inside the card */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15); /* Significant shadow for depth */
    max-width: 960px; /* Wider form card for better horizontal ratios */
    margin: 0 auto; /* Center the form card */
    border: 1px solid #e0e0e0; /* Subtle border */
}

.form-card-title {
    text-align: center;
    font-size: 2.5em; /* Larger title */
    margin-bottom: 1.8em; /* More space below the title */
    color: #0056b3;
}

fieldset {
    border: 1px solid #e0e0e0; /* Lighter, more subtle border */
    border-radius: 10px; /* More rounded fieldsets */
    padding: 30px; /* More padding inside fieldsets */
    margin-bottom: 40px; /* More space between fieldsets */
    background-color: #ffffff; /* White background inside fieldset */
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.03); /* Very subtle inner shadow for depth */
}

legend {
    font-size: 1.5em; /* Larger legend text */
    font-weight: 600;
    color: #007bff; /* Primary color for legends */
    padding: 0 15px; /* More padding for legend text */
    margin-left: -15px; /* Pull legend slightly left to align with fieldset border */
    background-color: #f0f2f5; /* Match page background for a 'cut-out' effect */
    border-radius: 5px; /* Slightly rounded legend background */
}

.form-group {
    margin-bottom: 30px; /* More space between form groups */
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 15px 20px; /* Increased padding for inputs */
    margin-top: 10px; /* More space between label and input */
    border: 1px solid #c9d6e4; /* Softer border color */
    border-radius: 8px; /* More rounded input fields */
    font-size: 1.15em; /* Larger input text */
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fdfdfd; /* Very light background for inputs */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3); /* Stronger, more noticeable blue focus glow */
    outline: none;
    background-color: #ffffff; /* White background on focus */
}

textarea {
    min-height: 150px; /* Taller textarea for more typing space */
}

/* Custom styles for select dropdown arrow */
select {
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; /* Position the custom arrow */
    background-size: 20px;
    padding-right: 40px; /* Ensure space for the arrow */
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Better minimum for amenities */
    gap: 20px; /* More space between checkboxes */
    margin-top: 20px;
    padding: 10px; /* Small padding within the group */
    background-color: #f7f9fc; /* Slightly different background for amenity choices */
    border-radius: 8px;
    border: 1px solid #eee;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px; /* More space between checkbox/icon and text */
    font-size: 1.05em;
    cursor: pointer;
    margin-bottom: 0;
    padding: 8px 10px; /* Padding for click area */
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background-color: #eef5ff; /* Light hover effect for amenities */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.3); /* Larger checkboxes */
    accent-color: #007bff; /* Custom color for checked state */
}

.checkbox-group label i {
    color: #007bff;
    font-size: 1.3em; /* Larger icons */
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* More space between image previews */
    margin-top: 25px;
    justify-content: flex-start; /* Align previews to the start */
    padding: 10px;
    border: 1px dashed #c9d6e4; /* Dashed border to indicate drop zone/upload area */
    border-radius: 10px;
    min-height: 150px; /* Ensure minimum height */
    align-items: center;
}

.image-preview-item {
    width: 140px; /* Larger image previews */
    height: 140px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef; /* Light background for empty state */
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the container nicely without distortion */
}

.error-message {
    color: #dc3545; /* Standard red for errors */
    font-size: 1em; /* Clear error message size */
    margin-top: 10px;
    font-weight: 500;
}

.btn-submit-listing {
    width: 70%; /* Wider button on desktop */
    max-width: 400px; /* Max width for consistency */
    padding: 18px 45px; /* Generous padding */
    font-size: 1.4em; /* Larger text for strong call to action */
    font-weight: 600;
    display: block;
    margin: 50px auto 0 auto; /* More margin above and center */
    background-color: #007bff; /* Primary action color */
    border: none;
    border-radius: 50px; /* Pill-shaped */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); /* Shadow for depth */
}

.btn-submit-listing:hover {
    background-color: #0056b3;
    transform: translateY(-4px); /* More pronounced lift */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* --- Footer: Subtle & Professional --- */
.main-footer {
    background-color: #212529; /* Darker footer background */
    color: white;
    padding: 40px 20px; /* Increased padding */
    text-align: center;
    font-size: 0.95em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Increased gap */
}

.main-footer .footer-links a {
    color: #c9d0d6; /* Slightly lighter link color */
    margin: 0 18px; /* More spacing */
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline; /* Added underline on hover */
}

/* --- Mobile Menu Toggle (Existing, ensure it works with new nav) --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px; /* Adjusted height for better bar spacing */
    cursor: pointer;
    z-index: 1001; /* Ensure toggle is above overlay */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Adjust breakpoint for larger tablets */
    h1 {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.3em;
    }
    h2.section-title {
        font-size: 2.3em;
    }
    .value-props-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust for smaller tablets */
    }
    .form-card {
        padding: 40px;
    }
    fieldset {
        padding: 25px;
    }
    legend {
        font-size: 1.3em;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        padding: 12px 15px;
        font-size: 1.1em;
    }
    .btn-submit-listing {
        width: 80%;
        padding: 16px 30px;
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #ffffff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1); /* Slightly stronger shadow */
        position: absolute;
        top: 110px; /* Adjusted based on header height */
        left: 0;
    }

    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0; /* More vertical margin */
    }
    .nav-links a {
        padding: 24px 0; /* More padding */
        color: #333;
        display: block;
    }
    .menu-toggle {
        display: flex;
    }

    h1 {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    h2.section-title {
        font-size: 2.2em;
    }
    .value-props-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
    }
    .value-prop-item {
        padding: 25px;
    }
    .form-card {
        padding: 30px;
    }
    fieldset {
        padding: 20px;
        margin-bottom: 30px;
    }
    legend {
        font-size: 1.2em;
        margin-left: -10px;
        padding: 0 10px;
    }
    .checkbox-group {
        grid-template-columns: 1fr; /* Stack checkboxes on very small screens */
        gap: 10px;
    }
    .btn-submit-listing {
        width: 90%;
        padding: 15px 25px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1.05em;
    }
    h2.section-title {
        font-size: 1.8em;
    }
    .value-prop-item .icon-large {
        font-size: 3.5em;
    }
    .form-card {
        padding: 20px;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 1em;
        padding: 10px 12px;
    }
    .image-preview-item {
        width: 100px;
        height: 100px;
    }
}
