﻿.background-image {
    background-image: url('../images/Background-Desktop_2x.png');
    background-size: cover; /* Ensures the image scales to fit the content */
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 85vh; /* Ensures the background covers the viewport initially */
    display: flex; /* Allows the content to define the height */
    flex-direction: column; /* Ensures content stacks vertically */
}

.main-container {
    display: flex; /* Enables Flexbox for alignment */
    flex-direction: column; /* Aligns items vertically */
    /* justify-content: center; /* Centers child elements horizontally */
    /* align-items: center; /* Centers child elements vertically */
    padding-top: 50px;
}

.sub-container {
    width: 80%; /* Occupies 80% of the parent div */
    max-width: 1400px; /* Optional: Set a maximum width for responsiveness */
    margin: 0 auto; /* Centers the div horizontally */
}

#welcome {
    /* padding-right: 10%; /* Adds a 20% margin to the right */
    /* padding-right: clamp(0rem, 4vw, 18%); */
    padding-right: clamp(0%, calc(10vw + 1%), 18%);
}

#welcome .header {
    line-height: 110%;
    font-size:64px;
}

/* Default layout for desktop */
.welcome-top-left-div {
    width: 100%; /* Default width when the right div is visible */
    float: left;
}

.gradient-text {
    background: linear-gradient(to right, #2A446F, #0078D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Ensures the gradient is clipped to the text content */
}

.badge-mod {
    color: #17253D;
}

/* Fluid hero size: scales down from 4rem on large screens to a comfortable minimum on phones */
.fs-hero {
    /* min 1.5rem, fluid value based on viewport width, max 4rem */
    font-size: clamp(2rem, calc(1.0rem + 3vw), 4rem);
    line-height: 1.1;
    /* Optional so the gradient text clip still applies cleanly */
    display: inline-block;
}

.col-container-2 {
    padding: 20px;
    margin: 0 auto; /* Center the form horizontally */
}

.form-container {
    border-radius: 18px;
    overflow: hidden; /* ensures children won't overflow the rounded corners */
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    background-color: rgba(240, 240, 240);
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.multi-select-pane {
    width: calc(100% - 1.5rem);
    max-width: calc(100% - 1.5rem);
    border: 1px solid rgba(0,0,0);
    border-radius: unset;
    line-height: 1.5;
}

/* Make partner-type options highlight on hover like Role/Country dropdowns */
.multi-select-pane .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.5rem; /* ensure the hover area covers the full row */
    transition: background-color 120ms ease-in-out;
    border-radius: 4px; /* subtle rounding matches hover region */
}

.multi-select-pane .form-check-input {
    margin: 0;               /* remove browser default margin that offsets alignment */
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    vertical-align: middle;
}

.multi-select-pane .form-check-label {
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
    display: block;
}

/* Hover / focus for the whole row so the background fills to the right edge */
.multi-select-pane .form-check:hover,
.multi-select-pane .form-check:focus-within {
    background-color: rgba(0, 0, 0, 0.5); /* same tone as Role/Country */
    color: white;
}

.multi-select-pane .form-check label {
    display: block; /* ensure the whole row is clickable/hoverable */
    margin: 0;
    cursor: pointer;
    padding-left: 0.25rem;
}

/* Avoid extra gap after the last item */
.multi-select-pane .form-check:last-child {
    margin-bottom: 0;
}


/* Mobile: hide existing background image and show new hero at top-right */
.main-container {
    position: relative; /* ensure absolute children position against container */
}

.mobile-hero-bg {
    display: none;
}

@media (max-width: 768px) {
    /* Use mobile hero in the top-right instead of the desktop background */
    .main-container.background-image {
        background-image: url('../images/Background-Mobile_2x.png');
        background-repeat: no-repeat;
        background-position: top right;
        /* keep the decorative image small so it sits in the corner */
        background-size: auto 35%;
    }

    /* optionally keep the gradient for the rest of the area */
    .background-image {
        background-color: #e4f1f5;
    }

    .mob-hide {
        display: none;
    }
}

@media (min-resolution: 1dppx) {
    .sub-container {
        width: 90%; /* Occupies 90% of the parent div */
        margin-bottom: 100px;
    }
}

@media (max-width: 1200px) {
    .sub-container {
        width: 90%; /* Occupies 90% of the parent div */
        margin-bottom: 50px;
    }

    .row.mb-3 .col-md-6 {
        width: 100%; /* Make each column take the full width */
        display: block; /* Stack the fields vertically */
    }

    .row.mb-3 .overflow-field {
        margin-top: 1rem;
    }

    /*#welcome {
        padding-right: 5%;
    }*/
}

@media (max-width: 900px) and (min-width: 768px) {
    #welcome {
        /* padding-right: inherit; */
        padding-left: 0px;
    }
}

@media (max-width: 480px) {
    .background-image {
        background-image: linear-gradient(#def3fd, #f7fcff, #fffaf7, #e8ecec);
    }

    .main-container {
        padding: 0px;
    }

    .sub-container {
        width: 100%; /* Occupies 100% of the parent div */
    }

    .mob-show {
        display: block; /* Ensure the right div is visible */
        text-align: center; /* Center the image horizontally */
    }

    .welcome-top-left-div {
        padding-top: 50px;
        padding-left: calc(var(--bs-gutter-x) * .5);
    }

    .welcome-bottom {
        padding-right: calc(var(--bs-gutter-x) * .5);
    }

    .form-container {
        padding: 15px;
    }

    .mob_padding_T0 {
        padding-top: 0px;
    }

    .mob_padding_R0 {
        padding-right: 0px;
    }

    .mob-w50pct {
        width: 50%;
    }

    /*#welcome {
        padding-right: 0px;
    }*/
}


