/* -----------------------------------------------------------
   CONTACT PAGE: Modern Split Layout
   Concept: "The Dialogue" - Asymmetric, Sticky, Premium
   ----------------------------------------------------------- */

/* Override default body/container for this page only if needed, 
   but we'll generally work within a full-width wrapper. */
.bg-modern {
    background-color: #f8f6f2;
    /* Lighter, cleaner alabaster */
}

/* MAIN WRAPPER */
.split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ------------------
   LEFT PANEL (Sticky Info)
   ------------------ */
.split-left {
    width: 42%;
    padding: 140px 60px 60px;
    background-color: var(--accent);
    /* Deep Green */
    background-image: linear-gradient(160deg, #155d2f 0%, #0d4624 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Decor: Subtle texture or shape */
.split-left::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
}

.left-content .eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.left-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 30px;
}

.left-content h1 span {
    font-family: 'Great Vibes', cursive;
    color: #dcfce7;
    opacity: 0.9;
}

.left-content p.intro {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 400px;
    font-weight: 300;
}

/* Contact Details in Left Panel */
.contact-details-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cd-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cd-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-icon i {
    font-size: 18px;
    color: #dcfce7;
}

.cd-text h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.6;
}

.cd-text p,
.cd-text a {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    margin: 0;
    line-height: 1.4;
    transition: opacity 0.2s;
}

.cd-text a:hover {
    opacity: 0.7;
}

/* Social Links at Bottom */
.left-social h4 {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 16px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: var(--accent);
    transform: translateY(-3px);
}


/* ------------------
   RIGHT PANEL (Scrollable Form)
   ------------------ */
.split-right {
    width: 58%;
    background: #fff;
    /* or #f9f9f9 */
    padding: 140px 10%;
    display: flex;
    flex-direction: column;
}

.form-intro {
    margin-bottom: 50px;
}

.form-intro h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.form-intro p {
    color: var(--muted);
    font-size: 16px;
}

/* Modern Floating Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mf-group {
    position: relative;
}

.mf-input,
.mf-select,
.mf-textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: var(--dark);
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    transition: border-color 0.3s ease;
    border-radius: 0;
    /* Remove default styling */
    font-family: 'Montserrat', sans-serif;
}

.mf-textarea {
    resize: none;
    min-height: 100px;
    padding-top: 24px;
}

.mf-input:focus,
.mf-select:focus,
.mf-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.mf-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Pseudo-class hack to detect populated inputs usually requires JS or placeholder check. 
   We'll use focus-within + valid check pattern */
.mf-input:focus~.mf-label,
.mf-input:not(:placeholder-shown)~.mf-label,
.mf-select:focus~.mf-label,
.mf-select:valid~.mf-label,
.mf-textarea:focus~.mf-label,
.mf-textarea:not(:placeholder-shown)~.mf-label {
    top: -12px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.mf-submit-btn {
    align-self: flex-start;
    padding: 18px 48px;
    background: var(--dark);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mf-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Right Side Map (Optional, below form) */
.map-section-lite {
    margin-top: 80px;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    filter: grayscale(100%);
    transition: filter 0.5s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-section-lite:hover {
    filter: grayscale(0%);
}

.map-section-lite iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------
   RESPONSIVE
   ------------------ */
@media (max-width: 1024px) {
    .left-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .split-left {
        width: 100%;
        height: auto;
        position: relative;
        padding: 100px 24px 60px;
    }

    .split-right {
        width: 100%;
        padding: 60px 24px;
    }

    .mf-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* -----------------------------------------------------------
   CONTACT ALT PAGE: "Overlap" Design
   Concept: Floating Glass Cards over Hero
   ----------------------------------------------------------- */

/* Special Hero Adjustment for overlap page */
.hero-overlap {
    height: 70vh !important;
    min-height: 500px !important;
}

/* Main Container that pulls up */
.overlap-container {
    max-width: 1320px;
    margin: 0 auto;
    margin-top: -120px;
    /* The Magic Pull-Up */
    padding: 0 24px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.overlap-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    /* Seamless look or gap, let's go seamless for modern card look */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    overflow: hidden;
}

/* Left Card: Info */
.overlap-info {
    background: var(--accent);
    background: linear-gradient(145deg, #1a5c36, #0e3d22);
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Decorative circle on info card */
.overlap-info::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.overlap-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.overlap-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.od-item h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.od-item p,
.od-item a {
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    margin: 0;
    line-height: 1.5;
}

.overlap-social {
    margin-top: 60px;
    display: flex;
    gap: 16px;
}

.overlap-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.3s;
}

.overlap-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Right Card: Form */
.overlap-form-wrapper {
    background: #fff;
    padding: 60px;
}

.overlap-form-wrapper h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.overlap-form-wrapper p {
    color: var(--muted);
    margin-bottom: 36px;
}

/* Clean Form Styles for Overlap */
.clean-group {
    margin-bottom: 24px;
}

.clean-input,
.clean-select,
.clean-textarea {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.clean-input:focus,
.clean-select:focus,
.clean-textarea:focus {
    background: #fff;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.clean-textarea {
    min-height: 140px;
    resize: vertical;
}

.clean-btn {
    padding: 16px 36px;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.clean-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive for Overlap */
@media (max-width: 900px) {
    .overlap-container {
        margin-top: 40px;
        /* Reset overlap */
        padding: 0 20px;
    }

    .overlap-grid {
        grid-template-columns: 1fr;
    }

    .overlap-info {
        padding: 40px;
    }

    .overlap-form-wrapper {
        padding: 40px 24px;
    }
}

/* -----------------------------------------------------------
   CONTACT ALT PAGE: Refinements
   ----------------------------------------------------------- */

/* MAP INTEGRATION: Left Panel Background */
/* MAP INTEGRATION: Left Panel Vertical Split */
.overlap-info {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Remove old map bg absolute styles */
.overlap-map-bg {
    display: none;
    /* Disable the BG map */
}

/* Top Section: Info (Green) */
.info-glass-overlay {
    position: relative;
    z-index: 2;
    background: var(--accent);
    background: linear-gradient(145deg, #1a5c36, #0e3d22);
    /* Remove transparency and margin to make it a solid block */
    margin: 0;
    padding: 40px;
    border-radius: 0;
    flex: 0 0 auto;
    /* Don't stretch indefinitely, just take needed space + some */
    border: none;
    color: #fff;
}

/* Map Section: Bottom fills remaining space */
.overlap-map-split {
    flex: 1 1 300px;
    /* Take remaining height, min 300px */
    position: relative;
    min-height: 250px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.overlap-map-split:hover {
    filter: grayscale(0%);
}

.overlap-map-split iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Override h3 for this context */
.info-glass-overlay h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

/* Override existing styles specifically for this layout */
.info-glass-overlay h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

/* FORM STYLES: Icon Input Groups (Matching User Image) */
.form-label-styled {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #384e4e;
    /* Teal-ish dark */
}

.styled-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #dcdcdc;
    /* Light border */
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.styled-input-group:focus-within {
    border-color: #3b82f6;
    /* Focus Blue */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon-box {
    background: #f8f9fa;
    /* Very light gray */
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dcdcdc;
    color: #1a1a1a;
    font-size: 18px;
}

.styled-input {
    flex-grow: 1;
    border: none !important;
    /* Remove individual borders */
    background: transparent !important;
    padding: 12px 16px !important;
    font-size: 15px;
    color: var(--dark);
    font-family: inherit;
    outline: none;
    height: auto;
}

.styled-input:focus {
    box-shadow: none !important;
}

/* Textarea specific */
textarea.styled-input {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button Customization */
.btn-submit-blue {
    background-color: #0d6efd;
    /* Bootstrap Blue or similar */
    color: #fff;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit-blue:hover {
    background-color: #0b5ed7;
}