/* ================================================
   TEAM GLAM — CRM Enquiry Form Widget
   Luxury editorial wrapper for Dubsado / CRM iframe embeds.
   ================================================ */

.tg-crm-wrap {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 40px;
    box-sizing: border-box;
    position: relative;
}

.tg-crm-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Header ── */
.tg-crm-header {
    text-align: center;
    margin-bottom: 40px;
}

.tg-crm-header--left {
    text-align: left;
}

.tg-crm-header--center {
    text-align: center;
}

.tg-crm-eyebrow {
    display: block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 14px;
}

.tg-crm-heading {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 400;
    color: #111111;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tg-crm-desc {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: var(--tg-body-font-size, 16px);
    line-height: 1.65;
    color: #555555;
    max-width: 680px;
    margin: 0 auto;
}

.tg-crm-header--left .tg-crm-desc {
    margin-left: 0;
}

.tg-crm-desc p {
    margin: 0 0 10px;
}

.tg-crm-desc p:last-child {
    margin-bottom: 0;
}

/* ── Form Card & Iframe ── */
.tg-crm-card {
    background-color: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.tg-crm-iframe-wrap {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-color: transparent;
    transition: min-height 0.3s ease;
}

.tg-crm-iframe-wrap iframe {
    display: block;
    width: 1px;
    min-width: 100%;
    border: none;
    outline: none;
    background: transparent;
    overflow: hidden;
}

/* ── Direct Fallback Link ── */
.tg-crm-fallback {
    margin-top: 24px;
    text-align: center;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #888888;
}

.tg-crm-fallback a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tg-crm-fallback a:hover {
    color: #000000;
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tg-crm-wrap {
        padding: 60px 30px;
    }
    .tg-crm-container {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .tg-crm-wrap {
        padding: 40px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .tg-crm-header {
        margin-bottom: 28px !important;
    }
    .tg-crm-heading {
        font-size: clamp(26px, 7vw, 36px) !important;
        margin-bottom: 12px !important;
    }
    .tg-crm-iframe-wrap {
        min-height: 420px;
    }
}
