/* Contact form validation */
/* =========================================================
   CONTACT SECTION (scoped)
   ========================================================= */

#contact {
    background-color: #222;
    background-image: url("../img/contactus/map-image.png");
    background-position: center;
    background-repeat: no-repeat;
}

    #contact .section-title,
    #contact .section-subtitle {
        color: #fff;
    }

    /* =========================================================
   CONTACT FORM (scoped to #contactForm)
   ========================================================= */

    #contact #contactForm .row {
        --bs-gutter-y: 0.75rem;
        align-items: stretch;
    }

    /* Square controls */
    #contact #contactForm .form-control,
    #contact #contactForm textarea,
    #contact #contactForm button {
        border-radius: 0;
    }

    /* Input sizing */
    #contact #contactForm input.form-control {
        height: 44px;
        padding: 10px 12px;
    }

    /* Space between each field wrapper in the left column */
    #contact #contactForm .col-md-6:first-child > .h-100 > div {
        margin-bottom: 12px;
    }

        #contact #contactForm .col-md-6:first-child > .h-100 > div:last-child {
            margin-bottom: 0;
        }

    /* Textarea matches the left stack: 3 inputs + 2 gaps */
    #contact #contactForm textarea.form-control {
        height: calc(3 * 44px + 2 * 12px);
        padding: 10px 12px;
        min-height: 0;
        resize: vertical;
    }

    /* Keep help text from creating extra empty height */
    #contact #contactForm .help-block {
        margin: 0.2rem 0 0;
        min-height: 0;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    /* Focus */
    #contact #contactForm .form-control:focus {
        border-color: #FA9632;
        box-shadow: none;
    }

    /* Placeholder */
    #contact #contactForm ::placeholder {
        font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-weight: 600;
        color: #a9a9a9;
        opacity: 1;
    }

    /* Validation colors */
    #contact #contactForm .is-invalid {
        border-color: #dc3545;
    }

    #contact #contactForm .help-block.text-danger {
        color: #ff6b6b;
    }

    /* =========================================================
   CONTACT CARDS
   ========================================================= */

    #contact .contact-cards {
        margin-top: 12px;
    }

    #contact .contact-card {
        border: 1px solid rgba(0,0,0,0.08);
    }


        #contact .contact-card > .card-body {
            flex: 0 0 auto; /* stops auto expansion */
            max-height: 200px !important;
            overflow: hidden;
          
            padding: 2px 12px;
        }
    #contact .contact-sep {
        margin: 0 8px; 
        opacity: 0.85; 
        font-weight: 600;
    }
    /* Header slot: small, consistent, supports wrap */
    #contact .contact-header {
        min-height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 4px;
        margin-bottom: 2px; /* smaller gap */
        gap: 2px;
    }

    /* Title inside header */
    #contact .contact-title {
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.04em;
        margin: 0;
        text-align: center;
    }

    #contact .contact-subtitle {
        font-size: 0.75rem;
        font-weight: 600;
        color: #FA9632 !important;
        letter-spacing: 0.03em;
        color: #666;
        text-transform: uppercase;
        display: block; /* key fix */
        text-align: center;
        opacity: 0.9;
    }

    #contact .contact-line {
        font-size: 0.9rem;
        line-height: 1.32; /* tighter than 1.5 */
        margin: 0; /* kill any sneaky margins */
    }

    /* Slight breathing room between address and contact rows */
    #contact .contact-card-footer {
        margin-top: 10px;
    }

    /* Contact rows */
    #contact .contact-item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2px;
        margin-top: 6px;
        font-size: 0.9rem;
    }

        /* Orange icons, aligned column */
        #contact .contact-item i {
            color: #FA9632;
            width: 16px;
            text-align: center;
            font-size: 0.9rem;
        }

    /* Links look like text */
    #contact .contact-card a {
        color: inherit;
        text-decoration: none;
    }

        #contact .contact-card a:hover {
            text-decoration: underline;
        }

    #contact .contact-card .contact-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        white-space: normal !important;
    }

        /* Force each line to be its own full-width row */
        #contact .contact-card .contact-header .contact-title,
        #contact .contact-card .contact-header .contact-subtitle {
            display: block !important;
            width: 100% !important;
            text-align: center !important;
            white-space: normal !important;
        }

        /* If some global style is floating things, kill it */
        #contact .contact-card .contact-header .contact-title {
            float: none !important;
        }

        #contact .contact-card .contact-header .contact-subtitle {
            float: none !important;
        }

/* Events section styling */
#events {
    background-color: #f7f7f7;
}

.events-card {
    max-width: 1100px;
    background-color: #ffffff;
    border-radius: 0px;
    padding: 28px 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border-top: 4px solid #f28c28;
    height: 100%;
}

/* ========= Events typography (exclusive) ========= */
.events-grid .event-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    position: relative;
    color: #1e1e1e !important;
}

.events-grid .event-date,
.events-grid .event-venue {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #374151; /* darker than description, lighter than title */
    margin-bottom: 6px;
    font-weight: 500;
}
    .events-grid .event-date i,
    .events-grid .event-venue i {
        color: #FA9632; /* Simple Origin orange */
        font-size: 0.9rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

.events-grid .event-desc {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 10px;
}

/* Keep whole card clickable (event-only) */
.events-grid .event-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

    .events-grid .event-card-link:hover .product-card {
        box-shadow: 0 6px 18px rgba(0,0,0,0.10);
        transform: translateY(-2px);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

/* Event images behave like hero photos (event-only override) */
.events-grid .product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover !important;
    object-position: center;
    padding: 0 !important;
    background: #f2f2f2;
    display: block;
}

/* Ensure event cards stretch to equal height */
.events-grid .product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
}
.events-grid .product-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column;
}
.events-grid .link-arrow {
    margin-top: auto;
}
/* Calendar embeds */
.calendar-embed {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* You had responsive show/hide controlled via Bootstrap classes;
   leaving that behavior to the HTML classes (d-none / d-md-block, etc). */
