body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    color: #555;
    line-height: 1.6;
}

/* --- New Section Title Style --- */
h3.section-title {
    border-bottom: 2px solid #3ab54a;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.4em;
}
/* No top margin for the first title */
h3.section-title:first-of-type {
    margin-top: 0;
}

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

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"], /* Added date type */
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: 'Roboto', sans-serif; /* Ensure consistent font */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus, /* Added date type */
textarea:focus,
select:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
}

/* --- New Style for single file input (House Plan) --- */
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: white;
    line-height: 1.5;
}

input[type="file"]::file-selector-button {
    background-color: #e9ecef;
    color: #495057;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
    margin-right: 15px;
}

input[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}
/* --- End single file input style --- */

small {
    color: #777;
    font-size: 14px;
}

/* --- New Style for description help text --- */
.description-help {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.description-help ul {
    margin: 5px 0 0 20px;
    padding: 0;
}
.description-help ul ul {
    margin-top: 3px;
}
/* --- End help text style --- */

.submit-btn {
    width: 100%;
    background-color: #333333;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px; /* Added margin */
}

.submit-btn:hover {
    background-color: #3ab54a;
}

/* Status Messages */
.status-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Styles for Interactive File Upload (Photos/Videos) --- */
.add-file-btn {
    background-color: #e9ecef;
    color: #495057;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-file-btn:hover {
    background-color: #dee2e6;
}

.file-list-container {
    margin-top: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-name {
    font-size: 15px;
    color: #333;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.remove-btn:hover {
    color: #a71d2a;
}
/* --- End Interactive File Upload --- */

/* --- Style for Character Counter --- */
.char-counter {
    float: right;
    font-weight: normal;
    color: #777;
}

/* --- New styles for side-by-side fields --- */
.form-row {
    display: flex;
    gap: 20px; /* Controls the space between the fields */
}

/* Renamed from .form-group-half for flexibility */
.form-group-flex {
    flex: 1; /* Each group will take up an equal amount of space */
    margin-bottom: 20px; /* Maintain consistent spacing */
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Stack fields vertically on small screens */
        gap: 0;
    }

    /* On mobile, remove bottom margin from flex groups, as .form-group handles it */
    .form-group-flex {
        margin-bottom: 0;
    }
}
/* --- MODIFICATION END --- */