/* General Form Styling */
#listing-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

/* Header Styling */
#listing-form h2 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Label Styling */
#listing-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Input Fields */
#listing-form input[type="text"],
#listing-form input[type="number"],
#listing-form input[type="url"],
#listing-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#listing-form textarea {
    height: 120px;
}

/* Listing Type Selection */
#listing-form .listing-type-container {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

#listing-form .listing-type-container input {
    margin-right: 8px;
}

/* Image Upload Section */
.image-upload-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

.image-upload-box {
    width: 48%;
    height: 150px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background: #f9f9f9;
    border-radius: 5px;
}

.image-upload-box:hover {
    border-color: #333;
}

/* Submit Button */
#listing-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#listing-form input[type="submit"]:hover {
    background: #333;
}
/* === Header & Footer Safe Padding Fix === */
#header, #footer {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    #header, #footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Optional: Give top/bottom spacing too if needed */
#header h1, #footer p {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}
