/* website/static/website/css/connect.css */

/* === Page background (matches About) === */
.page-main {
    background-color: #f5f5f5;
}

.site-footer {
    position: relative;
    margin-top: 0px;
    z-index: 2;
}

/* ============================
   CONTACT CANVAS + HERO
   ============================ */

/* Canvas wrapper */
.connect-canvas {
    width: 100%;
    max-width: 1440px;
    height: fit-content;
    /* keep your original height for desktop */
    margin: 0 auto;
    position: relative;
}

/* Hero with background image */
.connect-hero {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;

    /* make sure it actually takes up vertical space */
    min-height: 1029px;
    /* adjust to taste: 520–700 range usually looks good */

    background-image: url("../images/connect-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    /* for the absolute hero text */
    overflow: hidden;
}

/* Centered title + subtitle */
.connect-hero-content {
    position: absolute;
    top: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.connect-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.connect-subtext {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    max-width: 520px;
}

/* ============================
   TWO-COLUMN FORM OVER HERO
   ============================ */



/* White card holding the entire form */
.connect-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1440px;
    background: white;
    border-radius: 40px 40px 0 0;
    padding-top: 31px;
    padding-bottom: 24px;
    z-index: 3;
}

.connect-form-section {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}


.connect-form-two-column {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
}

/* Shared column */
.connect-column {
    flex: 1;
}

/* ============================
   LEFT COLUMN – CONTACT INFO
   ============================ */

.connect-left-title {
    font-family: 'Outfit', serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 32px 0;
}

.inline-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.inline-row::after {
    bottom: -5px;
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(96, 144, 181, 0.53);
}

.inline-label {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    white-space: nowrap;
}

.info-text {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: #555555;
    /* gray text on the right */
    text-align: right;
}

/* Socials: gray underlined clickable links */
.info-links a {
    color: #555555;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 300;
    margin-left: 4px;
}

.info-links a:first-child {
    margin-left: 0;
}

.info-links a:hover {
    color: #333333;
}

/* Inputs in left column (if any) */
.connect-left-column input {
    border: none;
    background: transparent;
    padding: 4px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #000;
    outline: none;
}

/* Map block */
.connect-map-wrapper {
    margin-top: 32px;
}

/* Crop frame */
.connect-map-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
}

/* Actual map */
.connect-map-iframe {
    width: 100%;
    height: 600px;
    border: none;
    margin-top: -150px;
    /* hide top UI */
    filter: brightness(102%) saturate(0);
    /* remove color */
}

/* Blue-white overlay layer */
.map-color-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(96, 144, 181, 0.35);
    mix-blend-mode: screen;
    border-radius: 16px;
}

/* ============================
   RIGHT COLUMN – FORM
   ============================ */

.connect-right-title {
    font-family: 'Outfit', serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.pill-field {
    margin-bottom: 16px;
}

.connect-right-column input,
.connect-right-column .pill-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #a6c9e2;
    background-color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.connect-right-column textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #a6c9e2;
    background-color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    min-height: 140px;
    max-height: 315px;
    resize: vertical;
    box-sizing: border-box;
    height: 292px;
}

.pill-field-textarea {
    margin-top: 8px;
}

/* Submit button */
.connect-submit {
    margin-top: 8px;
    height: 41px;
    padding: 0 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background-color: #6090B5;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.connect-submit:hover {
    background-color: #527ca0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* Errors */
.field-errors {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #c62828;
    margin-top: 4px;
}

/* ============================
   RESPONSIVE:
   ============================ */
@media (max-width: 950px) {
    .connect-card {
        width: 87%;
    }
}

@media (max-width: 768px) {
    .connect-hero{
        min-height: 1580px;
        background-image: url("../images/connect-bg-mobile.png");
        background-size: cover;          
        background-repeat: no-repeat;
        background-position: top center;
    }
    .connect-form-two-column {
        flex-direction: column;
        gap: 40px;

        justify-content: center;
        /* centers vertically (not needed here but ok) */
        align-items: center;
    }
}

@media (max-width: 655px) {
    .connect-hero{
        min-height: 1630px;
    }
}/* Very small phones */


@media (max-width: 480px) {

}