/* General body settings */
body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Keep horizontal scrolling disabled */
    overflow-y: auto; /* Allow vertical scrolling */
}
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden; /* Disable horizontal overflow */
    }
}

.slideshow-container {
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Change this */
    position: relative;
    margin: 0;
    overflow: hidden; /* Ensure no content overflows */
}


.slideshow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay over the slideshow */
    z-index: 1;
}

/* Slides */
.slide {
    display: none;
    position: relative;
    z-index: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
}

.slide img {
    width: 100vw; /* Ensure image stretches to full viewport width */
    height: 100vh; /* Ensure image stretches to full viewport height */
    object-fit: cover; /* Make sure images are resized proportionally */
}

/* Fade Animation */
.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}


/* Header styling inside slideshow */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fix the header to the top of the screen */
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 40px;
    z-index: 6; /* Ensure the header stays on top */
    background-color: transparent; /* Start transparent */
    transition: background-color 0.3s ease; /* Smooth transition when background changes */
    box-sizing: border-box;
}

header .logo img {
    height: 43px; /* Adjust logo size as needed */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    font-weight: 100; /* Use the thinnest style for Sarabun font */
    text-transform: uppercase; /* Make navigation text uppercase */
    position: relative;
}

nav ul li a:hover {
    background-color: transparent; /* Keep background transparent on hover */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* Thinner line */
    bottom: 0;
    left: 50%; /* Start from the middle */
    background-color: white;
    transition: all 0.3s ease-in-out; /* Transition animation */
    transform: translateX(-50%); /* Center the element */
}

nav ul li a:hover::after {
    width: 50%; /* Expand from the center to 50% on hover */
}

/* Get in Touch Button */
.get-in-touch button {
    display: flex;
    align-items: center; /* Center the icon and text vertically */
    font-family: 'Sarabun', sans-serif; /* Set font family */
    font-weight: 600; /* Make the font bold */
    padding: 10px 20px; /* Optional: adjust padding as needed */
    background-color: white; /* Background color */
    color: black; /* Text color */
    border: none; /* No border */
    border-radius: 5px; /* Optional: rounded corners */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s; /* Smooth background transition */
    letter-spacing: 1px; /* Adjust letter spacing */
}

.get-in-touch button:hover {
    background-color: #f0f0f0; /* Change background color on hover */
}

.get-in-touch button i {
    margin-right: 8px; /* Space between the icon and text */
}


@media (max-width: 768px) {
    /* Hide the navigation text */
    nav ul {
        display: none;
    }

    /* Hide the "Get in Touch" button */
    .get-in-touch {
        display: none;
    }

    /* Add a wrapper for the logo only on mobile */
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    /* Create the logo wrapper on mobile */
    header::before {
        content: "";
        display: block;
        width: 100%;
        height: 0;
    }

    .logo {
        display: block;
        margin: 0 auto; /* Ensure it's centered */
    }
}

/* Hexagon Dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 2;
}

.dots .dot {
    position: relative;
    width: 20px;
    height: 11.55px;
    background-color: #bbb;
    margin: 0 5px;
    display: inline-block;
    transform: rotate(90deg); /* Rotate hexagon to sit flat */
    cursor: pointer;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: background-color 0.3s ease;
}

.dots .dot.active {
    background-color: white; /* Solid white for selected hexagon */
}

/* Hexagon hover effect */
.dots .dot:hover {
    background-color: white;
}

.form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack heading and form vertically */
    align-items: center; /* Center align content */
    padding: 20px; /* Add padding if needed */
    position: absolute; 
    bottom: 120px; 
    z-index: 3;
}

.contact-heading {
    margin-bottom: 0; /* Remove space below the heading */
}

.contact-heading h2 {
    font-size: 24px; /* Ensure the heading is large enough */
    color: white; /* Ensure it stands out against the background */
    text-align: center; /* Center the heading */
}

/* Adjust the form-container to ensure it remains in place */
.form-container {
    width: 90%; /* Adjust as needed */
    max-width: 1000px; /* Optional: set a max width */
    display: flex;
    justify-content: center; /* Center the form */
    font-family: 'Sarabun', sans-serif;
}
@media (max-width: 768px) {
    .form-container {
        margin-bottom: 20px; /* Add a margin bottom on mobile (adjust value as needed) */
    }
}

.main-container {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    height: 100%; /* Optional: set to 100% to fill the parent container */
    padding: 20px; /* Optional: add padding around the main container */
    font-family: 'Sarabun', sans-serif;
    text-transform: uppercase; /* Make navigation text uppercase */
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow-y: auto; /* Allows scrolling within the popup */
    max-height: 80vh; /* Limits the height to 80% of the viewport */
}

@media (max-width: 768px) {
    .popup {
        width: 85%;
        padding: 15px;
        border-radius: 8px;
        max-height: 90vh; /* Increases maximum height on smaller screens */
    }
}


/* Optional: Add a full-screen overlay to gray out the rest of the page */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Just below the popup */
    display: none;
}

.register-section img {
    display: block; /* Ensures the image is block-level for centering */
    margin: 0 auto 20px; /* Centers the image horizontally and adds space below */
    max-width: 80%; /* Limits the size of the logo to 80% of its container */
    height: auto; /* Maintains aspect ratio */
}

@media (max-width: 768px) {
    .popup {
        width: 95%;
        padding: 15px;
        border-radius: 8px;
    }
    .register-section img {
        max-width: 90%; /* Allows the logo to be slightly larger on smaller screens */
    }
}
.contact-form {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Align inputs and button horizontally */
    align-items: flex-end; /* Vertically align inputs and button */
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for form box */
    font-family: 'Sarabun', sans-serif;
    text-transform: uppercase; /* Make navigation text uppercase */
    border-radius: 10px;
}

/* Wrapper for inputs and button */
.input-wrapper {
    display: flex;
    justify-content: space-between; /* Original layout */
    align-items: flex-end; /* Ensure inputs and button are aligned at the bottom */
    width: 100%;
    font-family: 'Sarabun', sans-serif;
    text-transform: uppercase; /* Make navigation text uppercase */
}

.input-wrapper.centered {
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text inside the input fields */
}


/* Input sections for Phone and Email */
.input-section {
    display: flex;
    font-family: 'Sarabun', sans-serif;
    text-transform: uppercase; /* Make navigation text uppercase */
    flex-direction: column;
    width: calc(45% - 10px); /* Ensure both inputs take up equal width with space for the vertical lines */
}

.input-section input {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    height: 50px;
    width: 100%; 
    box-sizing: border-box;
    border-radius: 0;
    font-family: 'Sarabun', sans-serif;
    text-transform: uppercase; /* Make navigation text uppercase */
    border-radius: 10px;
}

/* Submit Button */
.submit-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
}

.send-button {
    background-color: grey; /* Set the button background to grey */
    color: white; /* Set the button text color to white */
    border: none;
    cursor: pointer;
    height: 50px; /* Same height as inputs */
    padding: 0 40px; /* Increase padding to make the button larger */
    border-radius: 0;
    font-size: 16px; /* Increase font size for a larger appearance */
    transition: background-color 0.3s ease;
    font-family: 'Sarabun', sans-serif;
    border-radius: 10px;
}

.send-button:hover {
    background-color: #333;
}

/* Vertical Line Styling */
.vertical-line {
    width: 1px;
    height: 50px; /* Set a fixed height equal to the input height */
    background-color: #b5b5b5; /* Ensure the line is visible */
    align-self: center; /* Vertically center the line */
    margin: 0 10px; /* Space around the line */
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: column;
        align-items: flex-start; /* Adjust alignment on smaller screens */
    }

    .input-section {
        width: 100%;
        margin-bottom: 15px;
    }

    .submit-section {
        width: 100%;
        justify-content: center;
    }

    .vertical-line {
        display: none; /* Hide the vertical lines on smaller screens */
    }
}

/* Wrapper for Icon and Text Container */
.icon-text-wrapper {
    display: flex;
    justify-content: center; /* Center the container */
    width: 100%; /* Full width of the screen */
    padding: 0 20px; /* Optional: Add padding to prevent content from touching edges */
    box-sizing: border-box;
}

.icon-text-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    max-width: 1200px; /* Set a maximum width to keep everything in frame */
    width: 100%; /* Take full width of the wrapper */
    padding: 20px 0;
    gap: 20px; /* Add gap between the sections */
}

/* Styling for icon-box and vertical lines */
.icon-box {
    display: flex;
    align-items: center;
    text-align: left; /* Align text to the left of the icon */
    font-size: 0.9rem; /* Smaller text size */
    color: grey; /* Text color */
    font-family: 'Sarabun', sans-serif;
    
}

.icon-box i {
    font-size: 1.5rem; /* Smaller icon size */
    color: grey; /* Icon color */
    margin-right: 10px; /* Space between icon and text */
}

.vertical-line {
    width: 1px;
    height: 30px;
    background-color: #b5b5b5; /* Grey color for the line */
    margin: 0 10px; /* Space around the line */
}

/* Responsiveness */
@media (max-width: 768px) {
    .icon-text-container {
        flex-direction: column; /* Stack the sections vertically on small screens */
    }
    .icon-box {
        border-bottom: 1px solid #8080804d; /* Bottom border same color as the text */
        color: grey; /* Ensure the border matches the text color */
        width: 100%; /* Ensure the border spans the full width */
        padding-bottom: 10px; /* Optional: Add space for visual balance */
        display: flex; /* Use flexbox for centering */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        text-align: center; /* Ensure text is centered */
    }
    .icon-box:last-child {
        border-bottom: none; /* No bottom border on the last icon-box */
    }
    .vertical-line {
        display: none; /* Hide vertical lines on small screens */
    }
}
/* Trusted Developers Wrapper */
.trusted-developers-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* Trusted Developers Container */
.trusted-developers-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px; /* Gap between the text and images */
    margin-bottom: 60px;
}

/* Left Side Text Section */
.trusted-developers-text {
    width: 50%; /* Ensure the text takes up at least 50% */
}

.trusted-developers-text .small-text {
    font-size: 0.8rem;
    color: grey;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trusted-developers-text .head-text {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.trusted-developers-text .placeholder-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Image Layout Section */
.trusted-developers-images {
    display: flex;
    width: 50%; /* Ensure the images take up at most 50% */
    justify-content: space-between;
    gap: 20px;
}

/* Left Side with Two Stacked Images */
.trusted-developers-left-images {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between the two stacked images */
    width: 50%; /* Left images take 50% of the image section */
}

.trusted-developers-left-images img.horizontal-image {
    width: 100%; /* Ensure the images take full width */
    max-height: 250px; /* Limit the height */
    object-fit: cover; /* Maintain aspect ratio without distortion */
    border-radius: 10px; /* Optional rounded corners */
}

/* Right Side with One Tall Image */
.trusted-developers-right-image {
    width: 50%; /* Tall image takes the remaining 50% */
}

.trusted-developers-right-image img.vertical-image {
    width: 100%;
    max-height: 500px; /* Limit the height for the tall image */
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional rounded corners */
}
@media (max-width: 768px) {
    /* Center the small text */
    .trusted-developers-text .small-text {
        text-align: center;
    }

    /* Stack the images above the text */
    .trusted-developers-container {
        flex-direction: column; /* Stack the images and text vertically */
        align-items: center; /* Center-align the content */
    }

    .trusted-developers-images {
        width: 100%; /* Ensure images take up full width on mobile */
        margin-bottom: 20px; /* Add space between images and text */
    }

    .trusted-developers-text {
        width: 100%; /* Make sure the text takes full width */
        text-align: center; /* Center the text content */
    }

    /* Optional: Adjust image sizes to look better on mobile */
    .trusted-developers-left-images img,
    .trusted-developers-right-image img {
        width: 100%; /* Ensure the images are responsive */
        max-height: auto; /* Remove fixed height on images for better scaling */
        object-fit: contain; /* Maintain the aspect ratio */
    }
}

/* What is Realty Finder Wrapper */
.realty-finder-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9f9f9; /* Optional: Light background to separate the section */
    box-sizing: border-box;
}

/* Realty Finder Container */
.realty-finder-container {
    max-width: 800px; /* Limit the width of the text to ensure readability */
    text-align: center; /* Center all the content */
}

/* Title Styling */
.realty-finder-title {
    font-size: 2.2rem;
    text-transform: uppercase; /* Make the text uppercase */
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Text Styling */
.realty-finder-text {
    font-size: 1rem;
    color: grey;
    line-height: 1.6;
    margin-bottom: 40px;
}
/* Smaller Text under Realty Finder */
.realty-finder-subtext {
    font-size: 0.9rem;
    color: grey;
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .realty-finder-title {
        font-size: 1.8rem; /* Adjust the size to be slightly smaller */
    }
}

/* Realty Finder Slideshow Container */
.rf-slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 60px;
    height: 420px;
    overflow: hidden;
}

/* Slide Images */
.rf-slide {
    width: 31.5%;
    max-width: 336px;
    height: auto;
    position: absolute;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.8s ease-in-out;
    overflow: hidden;
}

.rf-slide img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Middle (Visible) Slide */
.rf-visible {
    z-index: 3;
    transform: translateX(0) scale(1.1);
    opacity: 1; /* Ensure the middle image is fully opaque */
}

/* Left and Right Slides */
.rf-left, .rf-right {
    z-index: 2;
    opacity: 0.5; /* Lighter opacity for the side images */
    transform: translateX(-200px) scale(0.9); /* Adjust positioning for side images */
}

.rf-right {
    transform: translateX(200px) scale(0.9);
}

/* Left and Right Arrows */
.rf-slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    cursor: pointer;
    z-index: 4;
}

/* Left Arrow */
.rf-left-arrow {
    left: 10px;
    border-width: 15px 20px 15px 0;
    border-color: transparent #bbb transparent transparent;
}

/* Right Arrow */
.rf-right-arrow {
    right: 10px;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent #bbb;
}

/* Hover Effect for Both Arrows */
.rf-slideshow-arrow:hover {
    border-color: transparent transparent transparent #bbb;
}

/* Text Styling for the Slideshow */
.rf-slide-text-container {
    text-align: center;
    margin-top: 20px;
}

/* Position text below the image */
.rf-slide-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #bbb;
    text-align: center;
    display: none;
}

/* Show the text only for the visible (active) slide */
.rf-visible .rf-slide-text {
    display: block;
}

@media (max-width: 768px) {
    /* Adjust the slideshow container for mobile */
    .rf-slideshow-container {
        width: 100%; /* Full width of the screen */
        height: 420px; /* Maintain height */
        position: relative;
        overflow: visible; /* Allow images to extend outside the container */
    }

    /* Adjust the individual slide sizes */
    .rf-slide {
        width: 65%; /* Main slide width */
        height: 420px; /* Maintain height */
        position: absolute; /* Allow positioning of slides */
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust for vertical centering */
        transition: opacity 0.8s ease-in-out;
    }

    /* Main visible slide (center image) */
    .rf-visible {
        z-index: 3;
        opacity: 1; /* Fully visible */
        width: 80%; /* Slightly increase width of the middle image */
        height: 100%; /* Ensure the height takes up the full container */
        transform: translateY(-50%); /* Center vertically without scaling */
    }

    /* Side images with partial visibility */
    .rf-left, .rf-right {
        z-index: 2;
        opacity: 0.5; /* Lighter opacity for side images */
        width: 30%; /* Smaller width to allow side images to be visible */
        height: 85%; /* Adjust the height */
        transform: translateY(-50%) scale(0.85); /* Ensure the side images are smaller */
        border-radius: 20px; /* Apply border-radius */
        position: absolute; /* Absolute positioning */
        overflow: visible; /* Ensure they are visible outside the container */
    }

    .rf-left {
        left: -15%; /* Position the left image */
    }

    .rf-right {
        right: -15%; /* Position the right image */
    }

    /* Hide arrows on mobile */
    .rf-slideshow-arrow {
        display: none; /* Hide arrows */
    }

    /* Ensure the border-radius is visible on all images */
    .rf-slide img {
        width: 100%; /* Ensure the image covers the entire slide */
        height: 100%; /* Ensure the image fully fits the slide */
        object-fit: cover; /* Maintain aspect ratio */
        border-radius: 20px; /* Apply the border-radius directly to the image */
    }
}





/* Hexagon Divider Container */
.hexagon-divider-container {
    display: flex;
    justify-content: center; /* Center the hexagons */
    gap: 10px; /* Space between the hexagons */
    background-color: #f9f9f9; /* Light background for the hexagons */
}

/* Individual Hexagons */
.hexagon {
    position: relative;
    width: 20px;
    height: 11.55px;
    background-color: #bbb; /* Light grey color for hexagons */
    margin: 0 5px;
    display: inline-block;
    transform: rotate(90deg); /* Rotate the hexagon to sit flat */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: background-color 0.3s ease; /* Transition effect */
}

/* Section Spacing */
.trusted-developers-wrapper, .realty-finder-wrapper {
    padding-bottom: 0; /* No extra bottom padding as hexagons are directly below */
}


/* Call to Action Button */
.cta-button {
    display: block;
    width: 100%; /* Full width to match the size of the left text container */
    padding: 15px 0;
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: grey; /* Blue background color */
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Add some space above the button */
}

.cta-button:hover {
    background-color: #333; /* Darker blue on hover */
}
/* New Section for Why Invest Fields */
.why-invest-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.why-invest-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px; /* Gap between fields */
}

.why-invest-field {
    width: 30%; /* Each field takes up 30% */
    text-align: center;
}

.why-invest-field h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.why-invest-field p {
    font-size: 1rem;
    color: grey;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-invest-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Optionally center align the elements */
    }

    .why-invest-field {
        width: 100%; /* Make sure each field takes full width */
        margin-bottom: 0px; /* Add spacing between the stacked fields */
    }
}

/* Section Wrapper */
.decision-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* Section Title */
.decision-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Container for Fields */
.decision-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

/* Individual Fields (Capital Gains & Rental ROI) */
.decision-field {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 45%;
    text-align: center;
    height: 100%; /* Ensures all fields have the same height */
    padding: 20px;
}
@media (max-width: 768px) {
    .decision-container {
        width: 100%; /* Ensure the container takes up full width */
        overflow: hidden; /* Prevent fields from going outside the container */
    }

    .decision-field {
        width: 100%; /* Ensure fields take up full width inside the container */
        display: block; /* Stack fields vertically */
        box-sizing: border-box; /* Include padding and border in width calculation */
        margin-bottom: 20px; /* Optional: Add spacing between fields */
    }
}


/* Align the text to the top */
.decision-field p {
    font-size: 1rem;
    color: grey;
    margin: 0 0 20px 0; /* Add margin-bottom to create space between text and button */
    flex-grow: 1; /* Ensure the text area grows to fill available space */
}

/* Image Styling */
.decision-image {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out; /* Smooth transition for scaling */
}

/* Hover Effect for Scale */
.decision-image:hover {
    transform: scale(1.1); /* Slightly grow the image on hover */
}

/* Headings for Capital Gains and Rental Yield */
.decision-field h3 {
    font-size: 1.5rem; /* Slightly larger than the paragraph text */
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0; /* Add some margin around the heading */
    text-align: center; /* Center the heading */
}


/* Call-to-Action Button */
.cta-button {
    width: 100%;
    padding: 15px 0;
    font-family: 'Sarabun', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: auto;
    align-self: flex-end;
}

.cta-button:hover {
    background-color: grey;
}



/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .decision-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Register Section */
.register-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.register-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

/* Form Styling */
.register-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Row Styling */
.input-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Individual Input Field Styling */
.input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
}

.input-field input, .input-field select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
}

/* Submit Button */
.submit-button {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: grey;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
    }
}
/* ROI Section Styling */
.roi-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.roi-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}

.roi-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.location {
    flex: 1;
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth reveal transition */
}

.roi-display {
    font-size: 3.5rem;
    margin-top: 15px;
    color: #1e90ff;
    min-height: 60px;
}


.location h3 {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 10px;
}

/* Reveal ROI Animation */
.reveal-animation {
    animation: fadeInUp 0.8s forwards ease-in-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .roi-container {
        flex-direction: column;
        gap: 20px;
    }

    .roi-display {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }

    .roi-section h2 {
        font-size: 2rem; /* Set text size to 2rem on mobile */
    }

    .roi-display {
        font-size: 4rem; /* Set font size to 4rem on mobile */
    }

    .location h3 {
        font-size: 1.4rem; /* Set font size to 1.4rem on mobile */
    }
}
/* Explanatory Text Styling */
.roi-info-text {
    margin-top: 30px;
    max-width: 800px;
    margin: 30px auto;
    color: #555;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}

.roi-info-text strong {
    color: #1e90ff; /* Highlight the ROI range in light blue */
}
/* Small CTA Button */
.roi-cta {
    margin-top: 20px;
    text-align: center;
}

.cta-button-small {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e90ff; /* Dark text color */
    background-color: transparent; /* Make the background transparent */
    border: 2px solid #1e90ff; /* Light blue border */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button-small:hover {
    background-color: #1e90ff; /* Light blue background on hover */
    color: white; /* Change text to white on hover */
}

/* Footer Styles */
.site-footer {
    background-color: #1e1e1e;
    color: white;
    padding: 40px 20px;
    font-family: 'Sarabun', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    width: 30%;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white; /* Changed text color to white */
}

.footer-column p, .footer-column ul {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #1e90ff;
}

/* Logo Styling */
.footer-logo {
    margin: 0 auto 20px; /* Center the logo and add space below it */
    width: 100%; /* Set the width to 100% of the parent container */
    max-width: 200px; /* Set a maximum width for large screens */
    height: auto; /* Maintain the aspect ratio */
}

/* Footer CTA Button */
.cta-footer-button {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    width: 100%; /* Set the width to 100% of the parent container */
    max-width: 200px; /* Ensure the button has the same max-width as the logo */
    margin: 0 auto; /* Center the button */
}

.cta-footer-button:hover {
    background-color: white;
    color: #1e1e1e;
}


/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #bbb;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}
