﻿/* ===== Calendly Embed (Dark band + light widget; brand-aware) =====
   --primary-color  -> dark band background (outside the iframe)
   --accent-color   -> section text color (outside the iframe)
*/

/* Edge-to-edge band */
.full-width-breakout-calendlyembed,
#calendlyembed.full-width-breakout-calendlyembed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--primary-color);
    /* spacing for the whole band */
    padding: 0;
    font-family: 'Montserrat','Segoe UI',sans-serif;
    z-index: 50;
}

/* Inner block (use padding so top “buffer” is reliable and not collapsed) */
.calendly-full-section {
    background-color: inherit;
    padding: 6rem 2rem 5rem; /* top buffer restored here */
    font-family: 'Montserrat','Poppins','Segoe UI',sans-serif;
    margin-top: 0;
    padding-top: 6rem; /* explicit top padding in case earlier rules override */
}

/* === ID-scoped color + typography (beats .tenant-theme element rules) === */
#calendlyembed {
    color: var(--accent-color);
}

    #calendlyembed .calendly-title,
    #calendlyembed .calendly-subtitle,
    #calendlyembed .calendly-paragraph,
    #calendlyembed p,
    #calendlyembed h1, #calendlyembed h2, #calendlyembed h3,
    #calendlyembed h4, #calendlyembed h5, #calendlyembed h6,
    #calendlyembed span {
        color: var(--accent-color);
    }

    /* Typography — restored sizes & spacing */
    #calendlyembed .calendly-title {
        font-size: 3rem; /* big headline */
        line-height: 1.2;
        font-weight: 700;
        margin: 2.5rem 0 1.25rem;
        text-align: center;
    }

    #calendlyembed .calendly-subtitle {
        font-size: 1.35rem; /* optional, if you include one */
        line-height: 1.5;
        font-weight: 600;
        margin: 0 0 1rem 0;
        text-align: center;
    }

    #calendlyembed .calendly-paragraph {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        text-align: left;
        width: 100%;
        max-width: 600px;
    }

    /* Links inside section copy */
    #calendlyembed a {
        color: var(--accent-color);
        text-decoration: underline;
    }

        #calendlyembed a:hover {
            opacity: 0.9;
            text-decoration: none;
        }

/* Layout */
.calendly-inner {
    display: flex;
    flex-direction: column; /* text above widget */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2.25rem; /* spacing between copy and widget */
}

.calendly-content {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* center title/subtitle; paragraphs stay left */
}

/* Widget container on our page (NOT inside Calendly iframe) */
.calendly-widget-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* White card around the iframe for contrast on dark band */
.calendly-inline-widget {
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    #calendlyembed .calendly-title {
        font-size: 2.25rem;
        margin-top: 1.75rem;
    }

    #calendlyembed .calendly-subtitle {
        font-size: 1.15rem;
    }

    .calendly-full-section {
        padding: 4rem 1.25rem 3rem;
        padding-top: 4rem;
    }

    .calendly-inner {
        gap: 1.75rem;
    }
}
