/* ===================== PAGE ===================== */
.invest-page-details {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* ===================== TITLE ===================== */
.invest-page-details h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.invest-page-details .browse-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #000;
}

.invest-page-details .header-desc {
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 15px;
    color: #000;
    margin-top: 10px;
    line-height: 1.5;
}

.invest-page-details .desc-main {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.invest-page-details .desc-sub {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 4px;
}

/* ===================== HERO IMAGE ===================== */
.invest-page-details .main-img {
    width: 100%;
    object-fit: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ===================== GALLERY ===================== */
.invest-page-details .invest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.invest-page-details .invest-gallery img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.invest-page-details .invest-gallery img:hover {
    transform: scale(1.05);
}

/* ===================== SECTION HEADER ===================== */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================== BUTTON ===================== */
.invest-page-details .details-btn {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.invest-page-details .details-btn:hover {
    background: #333;
}

/* ===================== BOX SECTIONS ===================== */
.invest-page-details .invest-box {
    margin-top: 30px;
}

.invest-page-details .invest-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* ===================== FLOORPLAN ===================== */
.invest-page-details .floorplan {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* ===================== PRICE TABLE ===================== */
.invest-page-details .price-table {
    width: 100%;
    border-collapse: collapse;
}

.invest-page-details .price-table th,
.invest-page-details .price-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.invest-page-details .price-table th {
    background: #f7f7f7;
}

/* ===================== FEATURES ===================== */
.invest-page-details .features-list {
    list-style: none;
    padding: 0;
}

.invest-page-details .features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* ===================== FORM ===================== */
.form-box {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 25px;
    border-radius: 10px;
    background: #f9f9f9;
    text-align: center;
}

.invest-page-details form {
    display: grid;
    gap: 12px;
}

.invest-page-details input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}


/* ===================== FLOATING CTA ===================== */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: 0.3s;
}

.floating-cta:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===================== MODAL ===================== */
.modal {
    display: none;
    /* CRITICAL */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Close button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

#formMsg {
    margin-top: 0px;
    min-height: 0px;
}

.browse-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
}

.browse-btn:hover {
    background: #000;
}

/* Optional animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .invest-page-details .main-img {
        height: 250px;
    }

    .modal-content {
        margin: 20% auto;
    }
}