/* Contact Us section — page builder canvas + live site (template 6) */
.t6-contact-builder-card {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.t6-contact-builder-card .cms-page-builder-page,
.t6-contact-builder-card .cms-page-builder-zone {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
.t6-contact-page {
    padding-bottom: 40px;
}
.t6-contact-page .container {
    max-width: 1140px;
}
.t6-contact-shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}
.t6-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}
.t6-contact-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 100%;
}
.t6-contact-info {
    border-radius: 18px;
    padding: 24px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(30, 64, 175, .94)),
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .35), transparent 42%);
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, .22);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    flex: 0 0 auto;
}
.t6-contact-info::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .28);
    pointer-events: none;
}
.t6-contact-info-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.t6-contact-empty-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(226, 232, 240, .92);
    font-size: .9rem;
    line-height: 1.55;
}
.t6-contact-highlights {
    margin-top: 8px;
    padding-top: 4px;
}
.t6-contact-info h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -.02em;
}
.t6-contact-info .t6-contact-lead {
    color: rgba(226, 232, 240, .9);
    line-height: 1.7;
    margin-bottom: 22px;
    font-size: .98rem;
}
.t6-contact-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0;
}
.t6-contact-detail:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.t6-contact-detail-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(125, 211, 252, .25);
    color: #bae6fd;
}
.t6-contact-detail strong {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, .95);
    margin-bottom: 4px;
}
.t6-contact-detail a,
.t6-contact-detail span {
    color: #f8fafc;
    line-height: 1.55;
    font-size: .95rem;
}
.t6-contact-detail a:hover {
    color: #bae6fd;
    text-decoration: underline;
}
.t6-contact-pill {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0;
}
.t6-contact-highlights .t6-contact-pill:first-child {
    border-top: 0;
    padding-top: 0;
}
.t6-contact-pill i {
    color: #7dd3fc;
    margin-top: 3px;
}
.t6-contact-form-wrap {
    border-radius: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    min-width: 0;
    height: 100%;
}
.t6-contact-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}
.t6-contact-form-wrap .t6-contact-form-sub {
    color: #64748b;
    margin-bottom: 18px;
    font-size: .92rem;
    line-height: 1.55;
}
.t6-themed-form .form-label,
.t2-themed-form .form-label {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}
.t6-themed-form .form-control,
.t2-themed-form .form-control {
    border: 1px solid #dde5ed;
    border-radius: 12px;
    background: #f8fafc;
    padding: 13px 15px;
    color: #111827;
}
.t6-themed-form .form-control:focus,
.t2-themed-form .form-control:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.t6-themed-form .btn-primary,
.t2-themed-form .btn-primary {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
    background: #3b82f6;
    border: 0;
    box-shadow: 0 12px 26px rgba(59, 130, 246, .22);
}
.t6-contact-location {
    border-radius: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.t6-location-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf3;
    flex: 0 0 auto;
}
.t6-location-head-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(59, 130, 246, .28);
}
.t6-location-head-text h3 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}
.t6-location-head-text p {
    margin: 4px 0 0;
    font-size: .9rem;
    color: #64748b;
    line-height: 1.5;
}
.t6-contact-map {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    flex: 1 1 auto;
    min-height: 200px;
}
.t6-contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .08);
    pointer-events: none;
    z-index: 1;
}
.t6-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
}
.t6-location-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8edf3;
    flex: 0 0 auto;
}
.t6-location-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 200px;
    min-width: 0;
    color: #475569;
    font-size: .92rem;
    line-height: 1.55;
}
.t6-location-address i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #3b82f6;
    font-size: 1.05rem;
}
.t6-location-address a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}
.t6-location-address a:hover {
    color: #3b82f6;
    text-decoration: underline;
}
.t6-location-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .25);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.t6-location-open-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(59, 130, 246, .32);
}
.cms-contact-section-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}
.cms-contact-section-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: .88rem;
    line-height: 1.5;
}

/* Page builder canvas — match live site two-column layout */
body.pb-contact-page {
    min-width: 1120px;
    background: #f1f5f9 !important;
}
body.pb-contact-page .t6-contact-shell,
body.pb-contact-page .cms-contact-block.t6-contact-shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}
body.pb-contact-page .t6-contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}
body.pb-contact-page .t6-contact-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 0;
}
body.pb-contact-page .t6-contact-form-wrap {
    height: 100%;
}
body.pb-contact-page .cms-contact-body {
    display: block;
    min-width: 0;
}
body.pb-contact-page .gjs-selected {
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .t6-contact-grid { grid-template-columns: 1fr; }
    body.pb-contact-page .t6-contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
    .t6-contact-left { min-height: auto; }
    .t6-contact-form-wrap { height: auto; }
    .t6-contact-map { min-height: 220px; }
    .t6-contact-map iframe { min-height: 220px; }
    .t6-location-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .t6-location-open-btn {
        justify-content: center;
        width: 100%;
    }
}
