.modal {
    display: none;
    position: fixed;
    z-index: 1057;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.own-a {
    display: flex;
    column-gap: 10px;
    flex-wrap: wrap;
}

.property-type {
    padding: 20px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

@media (max-width: 480px) {
    .property-type {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .own-a {
        justify-content: center; 
    }

    
}



.modal-content {
    background-color: #fff;
  margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: bold;
    cursor: pointer;
}

.step-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-subheader {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
}

.form-content {
    display: flex;
    flex-direction: column;
}

.left-section,
.right-section {
    width: 100%;
    margin-bottom: 20px;
}

.left-section {
    padding-right: 0;
}

.right-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 18px;
    margin: 15px 0 7px 0;
    font-weight: bold;
}

.property-type {
    display: block;
    padding: 10px;
    margin: 10px 0;
    width: min-content;
    height: min-content;
    text-wrap: nowrap;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
}

.property-type.selected {
    background-color: red;
    color: white;
    font-weight: bold;
}

.floorplan-type.selected {
    background-color: red;
    color: white;
    font-weight: bold;
}

.floorplan-type {
    display: block;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.buttons-step-2 button {
    margin-top: 20px;
    padding: 5px 20px;
    border: 1px solid red;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
}

.buttons-step-2 button:hover {
    background-color: red;
    color: #fff;
}

.next-button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end;
}

.next-button:hover {
    background-color: red;
    color: #fff;
}

input[type="text"] {
    padding: 10px;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.info-text {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

.info-description {
    color: #777;
}

.form-group select {
    padding: 10px;
    width: 100%;
    border-radius: 5px;
}

.right-section img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 768px) {
    .form-content {
        flex-direction: row;
    }

    .left-section {
        width: 50%;
        padding-right: 20px;
    }

    .right-section {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 90%;
        margin: 2% auto;
        padding: 10px;
    }

    .step-header {
        font-size: 20px;
    }

    .step-subheader {
        font-size: 14px;
    }

    .property-type {
        font-size: 14px;
    }

    .next-button {
        padding: 8px 16px;
    }
}

.planning-type,
.looking-type {
    display: block;
    padding: 10px;
    margin: 10px 0;
    width: min-content;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: left;
    font-size: 16px;
    text-wrap: nowrap;
    border-radius: 5px;
    cursor: pointer;
}

.planning-type.selected,
.looking-type.selected {
    background-color: red;
    color: white;
    font-weight: bold;
}

.floorplane-whole {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.floorplan-type {
    flex: 1 1 calc(50% - 120px);
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.floorplan-type.selected {
    background-color: red;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .floorplan-type {
        flex: 1 1 calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .floorplan-type {
        font-size: 14px;
        padding: 8px;
    }
}

.thank-you-modal {
    display: none; 
    position: fixed;
    z-index: 1002; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    overflow: auto; 
}

.thank-you-modal .modal-content {
    background: linear-gradient(to bottom, #fff, #f9f9f9); 
    margin: 10% auto; 
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
    text-align: center; 
    position: relative; 
}

.thank-you-modal .close-thank-you {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.thank-you-modal .close-thank-you:hover {
    color: #000; 
}

.thank-you-modal h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Roboto', sans-serif; 
    font-weight: 700; 
}

.thank-you-modal p {
    font-size: 18px;
    color: #666; 
    line-height: 1.5; 
    margin: 0; 
    font-family: 'Roboto', sans-serif; 
}


.thank-you-modal .modal-content {
    padding-top: 15px;
}

@media (max-width: 768px) {
    .thank-you-modal .modal-content {
        width: 90%;
    }

    .thank-you-modal h2 {
        font-size: 22px;
    }

    .thank-you-modal p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .thank-you-modal .modal-content {
        width: 95%;
        padding: 20px;
    }

    .thank-you-modal h2 {
        font-size: 20px;
    }

    .thank-you-modal p {
        font-size: 14px;
    }
}
