.host {
    background-color: rgb(0, 119, 255) !important;
    color: white !important;
}
.float{
    display: none;
}

.host-container {
    border: none;
    width: 100%;
    max-width: 900px;
    height: fit-content;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 10px;
    border-radius: 10px;

    overflow: hidden;
}

.host_title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: large;
    padding: 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
    text-align: center;
    margin-bottom: 10px ;
    color: rgb(0, 0, 0);
    width: 100%;
}

form {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    background-color: white;
}



/* Form sections */
.rental_building_title,
.rental_building_description,
.rental_building_location,
.rental_building_images {
    margin: 10px 0;
}

.rental_building_title p,
.rental_building_description p,
.rental_building_location p {
    margin: 0 0 8px 0;
}

.label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: medium;
    color: rgb(54, 54, 54);
    display: block;
}

.title_input,
.description_input,
.location_input {
    font-family: var(--font-main);
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: medium;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.title_input:focus,
.description_input:focus,
.location_input:focus {
    border-color: rgb(0, 132, 255);
    background-color: white;
}

.title_input::placeholder,
.description_input::placeholder,
.location_input::placeholder {
    color: rgba(54, 54, 54, 0.5);
    font-size: medium;
}

.description_input {
    resize: vertical;
    min-height: 100px;
}


.rental_building_images, .caretaker, .rental_building_location{
    border: 1px solid rgb(189, 189, 189);
    border-radius: 10px;
    padding: 15px;
    margin: 5px 0;
}


.caretaker p,.rental_building_images p, .rental_building_location p {
    margin: 0 0 8px 0;
    font-family: var(--font-main);
    font-weight: 700;
    color: rgb(54, 54, 54);

}
.caretaker .info, .rental_building_images .info{
    font-family: var(--font-main);
    font-weight: 600;
    font-size: small;
    color: rgb(0, 0, 0);
    background-color: #e1e1e1;
    border-radius: 10px;
    padding: 5px 10px;
}

/* Custom Upload Button */
.upload-button {
    font-family: var(--font-main);
    font-weight: 600;
    background: linear-gradient(135deg, rgb(0, 132, 255), rgb(0, 100, 200));
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 15px auto;
    font-size: medium;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.3);
}


.upload-button:active {
    transform: scale(0.98);
}

/* Image gallery preview */
.image-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(128, 128, 128, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(128, 128, 128, 0.3);
    min-height: 60px;
}

.image-item {
    position: relative;
    display: inline-block;
}

.image-item img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.image-item .remove_btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-weight: bold;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-item .remove_btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* Fieldsets and Utilities */
fieldset {
    font-family: var(--font-main);
    font-weight: 600;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(128, 128, 128, 0.04);
}

legend {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: large;
    color: rgb(0, 0, 0);
    padding: 0 10px;
}

.utilities {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.utility-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.utility-item label {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    color: rgb(54, 54, 54);
    margin: 0;
}

/* Security Features */
.security {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 0, 0, 0.08);
}

.security-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: medium;
    color: rgb(0, 0, 0);
    display: block;
    margin-bottom: 15px;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.security-feature input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: rgb(255, 0, 0);
}

.security-feature label {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    color: rgb(22, 22, 22);
    margin: 0;
}

/* Form inputs and selects */
form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form select,
form textarea {
    font-family: var(--font-main);
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: medium;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus,
form textarea:focus {
    border-color: rgb(0, 132, 255);
    background-color: white;
}

/* Submit button */
.submit_btn {
    font-family: var(--font-main);
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, rgb(0, 132, 255), rgb(0, 100, 200));
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px auto;
    transition: all 0.3s ease;
    display: block;
    font-size: medium;
    width: 70%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.3);
}

.submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
}

.submit_btn:active {
    transform: scale(0.98);
}

/* Error messages */
.error, p .error {
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    font-size: smaller !important;
    color: #d32f2f !important;
    padding: 10px 5px !important;
}

p.error {
    margin: 8px 0 0 0;
}