/* ========================================
   3G Contact Form — Frontend Styles
   Premium Lead Generation Form
   ======================================== */

:root {
    --tgcf-primary: #1e40af;
    --tgcf-primary-rgb: 30,64,175;
    --tgcf-accent: #f59e0b;
    --tgcf-accent-rgb: 245,158,11;
    --tgcf-radius: 14px;
    --tgcf-radius-sm: 10px;
    --tgcf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tgcf-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --tgcf-shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ========== FORM WRAPPER ========== */
.tgcf-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tgcf-form-inner {
    background: #ffffff;
    border-radius: var(--tgcf-radius);
    box-shadow: var(--tgcf-shadow);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}

.tgcf-form-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tgcf-primary), var(--tgcf-accent));
}

/* ========== HEADER ========== */
.tgcf-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.tgcf-form-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tgcf-primary), rgba(var(--tgcf-primary-rgb), 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--tgcf-primary-rgb), 0.25);
}

.tgcf-form-title {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tgcf-form-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

/* ========== FORM ========== */
.tgcf-form {
    padding: 24px 32px 32px;
}

.tgcf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tgcf-field {
    margin-bottom: 0;
}

.tgcf-field-full {
    margin-bottom: 16px;
}

.tgcf-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.tgcf-req {
    color: #ef4444;
}

/* ========== INPUTS ========== */
.tgcf-input-wrap {
    position: relative;
}

.tgcf-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color var(--tgcf-transition);
    z-index: 1;
}

.tgcf-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--tgcf-radius-sm);
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all var(--tgcf-transition);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.tgcf-input-wrap input:focus {
    border-color: var(--tgcf-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--tgcf-primary-rgb), 0.1);
}

.tgcf-input-wrap input:focus + .tgcf-field-icon,
.tgcf-input-wrap:focus-within .tgcf-field-icon {
    color: var(--tgcf-primary);
}

.tgcf-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--tgcf-radius-sm);
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all var(--tgcf-transition);
    outline: none;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.tgcf-form textarea:focus {
    border-color: var(--tgcf-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--tgcf-primary-rgb), 0.1);
}

.tgcf-form select,
.tgcf-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--tgcf-radius-sm);
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all var(--tgcf-transition);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.tgcf-form select:focus,
.tgcf-select:focus {
    border-color: var(--tgcf-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(var(--tgcf-primary-rgb), 0.1);
}

/* ========== SERVICE BOXES ========== */
.tgcf-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tgcf-service-box {
    cursor: pointer;
    display: block;
}

.tgcf-service-box input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tgcf-service-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--tgcf-radius-sm);
    background: #f8fafc;
    transition: all var(--tgcf-transition);
    position: relative;
    text-align: center;
    min-height: 80px;
}

.tgcf-service-box-inner:hover {
    border-color: rgba(var(--tgcf-primary-rgb), 0.4);
    background: rgba(var(--tgcf-primary-rgb), 0.03);
    transform: translateY(-1px);
}

.tgcf-service-box input:checked + .tgcf-service-box-inner {
    border-color: var(--tgcf-primary);
    background: rgba(var(--tgcf-primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--tgcf-primary-rgb), 0.12);
}

.tgcf-service-icon {
    color: #64748b;
    transition: color var(--tgcf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgcf-service-box input:checked + .tgcf-service-box-inner .tgcf-service-icon {
    color: var(--tgcf-primary);
}

.tgcf-service-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
    transition: color var(--tgcf-transition);
}

.tgcf-service-box input:checked + .tgcf-service-box-inner .tgcf-service-label {
    color: var(--tgcf-primary);
}

.tgcf-service-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tgcf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--tgcf-transition);
}

.tgcf-service-box input:checked + .tgcf-service-box-inner .tgcf-service-check {
    opacity: 1;
    transform: scale(1);
}

/* ========== MAP LIVE PREVIEW ========== */
.tgcf-map-container {
    margin-top: 12px;
    border-radius: var(--tgcf-radius-sm);
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.tgcf-map-label {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tgcf-map-iframe-wrap {
    line-height: 0;
}

.tgcf-map-iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

/* ========== PRIVACY ========== */
.tgcf-privacy-field {
    margin-top: 4px;
}

.tgcf-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.tgcf-privacy-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tgcf-privacy-check-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tgcf-transition);
    margin-top: 1px;
    background: #f8fafc;
    position: relative;
}

.tgcf-privacy-label input:checked + .tgcf-privacy-check-custom {
    background: var(--tgcf-primary);
    border-color: var(--tgcf-primary);
}

.tgcf-privacy-label input:checked + .tgcf-privacy-check-custom::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) translateY(-1px);
}

.tgcf-privacy-text a {
    color: var(--tgcf-primary);
    text-decoration: underline;
}

/* ========== SUBMIT BUTTON ========== */
.tgcf-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--tgcf-primary), rgba(var(--tgcf-primary-rgb), 0.85));
    color: #fff;
    border: none;
    border-radius: var(--tgcf-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tgcf-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(var(--tgcf-primary-rgb), 0.3);
}

.tgcf-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--tgcf-primary-rgb), 0.4);
}

.tgcf-submit-btn:active {
    transform: translateY(0);
}

.tgcf-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.tgcf-submit-btn:hover::before {
    left: 100%;
}

.tgcf-submit-arrow {
    display: flex;
    transition: transform var(--tgcf-transition);
}

.tgcf-submit-btn:hover .tgcf-submit-arrow {
    transform: translateX(4px);
}

.tgcf-spinner {
    animation: tgcf-spin 1s linear infinite;
}

@keyframes tgcf-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== SUCCESS ========== */
.tgcf-success {
    text-align: center;
    padding: 60px 40px;
    animation: tgcf-fadeIn 0.6s ease;
}

.tgcf-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    animation: tgcf-scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

@keyframes tgcf-scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes tgcf-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tgcf-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.tgcf-success-text {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.tgcf-form-footer {
    text-align: center;
    padding: 12px;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* ========== VALIDATION ========== */
.tgcf-field-error input,
.tgcf-field-error textarea,
.tgcf-field-error select {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.tgcf-error-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: block;
    animation: tgcf-fadeIn 0.3s ease;
}

.tgcf-services-error .tgcf-service-box-inner {
    border-color: #fca5a5;
}

/* ========== FLOATING CTA ========== */
.tgcf-floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100px);
    opacity: 0;
}

.tgcf-floating-cta.tgcf-cta-visible {
    transform: translateY(0);
    opacity: 1;
}

#tgcf-floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--tgcf-accent), #d97706);
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(var(--tgcf-accent-rgb), 0.45);
    transition: all var(--tgcf-transition);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: inherit;
    white-space: nowrap;
}

#tgcf-floating-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(var(--tgcf-accent-rgb), 0.55);
}

.tgcf-cta-pulse #tgcf-floating-cta-btn {
    animation: tgcf-pulse 2s ease-in-out infinite;
}

@keyframes tgcf-pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(var(--tgcf-accent-rgb), 0.45); }
    50% { box-shadow: 0 8px 30px rgba(var(--tgcf-accent-rgb), 0.45), 0 0 0 12px rgba(var(--tgcf-accent-rgb), 0.15); }
}

/* ========== SLIDE-IN DRAWER (right side) ========== */
.tgcf-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 99998;
}

.tgcf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    max-width: 100vw;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tgcf-drawer.tgcf-drawer-open {
    transform: translateX(0);
}

.tgcf-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tgcf-primary), rgba(var(--tgcf-primary-rgb), 0.85));
    color: #fff;
    flex-shrink: 0;
}

.tgcf-drawer-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tgcf-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tgcf-transition);
    line-height: 1;
    font-family: inherit;
}

.tgcf-drawer-close:hover {
    background: rgba(255,255,255,0.3);
}

.tgcf-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.tgcf-drawer-body .tgcf-form-wrapper {
    max-width: 100%;
}

.tgcf-drawer-body .tgcf-form-inner {
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.tgcf-drawer-body .tgcf-form-inner::before {
    display: none;
}

.tgcf-drawer-body .tgcf-form-footer {
    border-radius: 0;
}

.tgcf-drawer-body .tgcf-services-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .tgcf-form-header {
        padding: 20px 20px 16px;
    }
    .tgcf-form {
        padding: 20px;
    }
    .tgcf-row {
        grid-template-columns: 1fr;
    }
    .tgcf-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tgcf-floating-cta {
        right: 12px;
        bottom: 12px;
    }
    #tgcf-floating-cta-btn {
        padding: 14px 22px;
        font-size: 13px;
    }
    .tgcf-drawer {
        width: 100vw;
    }
}

@media (max-width: 400px) {
    .tgcf-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tgcf-service-box-inner {
        padding: 14px 6px 10px;
        min-height: 70px;
    }
    .tgcf-drawer-body .tgcf-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ========== EMBED / SHORTCODE POLISH ========== */
.tgcf-layout-default.tgcf-form-wrapper,
.tgcf-layout-embed.tgcf-form-wrapper {
    max-width: 920px;
}

.tgcf-layout-default .tgcf-services-grid,
.tgcf-layout-embed .tgcf-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tgcf-layout-default .tgcf-service-box-inner,
.tgcf-layout-embed .tgcf-service-box-inner {
    min-height: 88px;
}

/* ========== COMPACT DRAWER SERVICE BOXES ========== */
.tgcf-is-drawer .tgcf-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tgcf-is-drawer .tgcf-service-box-inner,
.tgcf-service-box-compact .tgcf-service-box-inner {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    padding: 12px 38px 12px 12px;
    min-height: 58px;
}

.tgcf-is-drawer .tgcf-service-label,
.tgcf-service-box-compact .tgcf-service-label {
    flex: 1;
    font-size: 13px;
    line-height: 1.25;
}

.tgcf-is-drawer .tgcf-service-icon,
.tgcf-service-box-compact .tgcf-service-icon {
    width: 22px;
    min-width: 22px;
}

.tgcf-is-drawer .tgcf-service-icon svg,
.tgcf-service-box-compact .tgcf-service-icon svg {
    width: 20px;
    height: 20px;
}

.tgcf-is-drawer .tgcf-service-check,
.tgcf-service-box-compact .tgcf-service-check {
    top: 50%;
    right: 10px;
    transform: translateY(-50%) scale(0.5);
}

.tgcf-is-drawer .tgcf-service-box input:checked + .tgcf-service-box-inner .tgcf-service-check,
.tgcf-service-box-compact input:checked + .tgcf-service-box-inner .tgcf-service-check {
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    .tgcf-layout-default .tgcf-services-grid,
    .tgcf-layout-embed .tgcf-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ======================== DROPDOWN LAYOUT ======================== */
.tgcf-layout-dropdown .tgcf-form-inner {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(2px);
}
.tgcf-layout-dropdown .tgcf-form-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 18px;
}
.tgcf-layout-dropdown .tgcf-form-header-icon {
    display: none;
}
.tgcf-layout-dropdown .tgcf-form-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.tgcf-layout-dropdown .tgcf-form-subtitle {
    font-size: 1rem;
}
.tgcf-select-wrap {
    position: relative;
}
.tgcf-services-select,
.tgcf-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    padding: 0 46px 0 16px;
    font-size: 16px;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
}
.tgcf-select-caret {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #111827;
}
.tgcf-layout-dropdown .tgcf-row {
    gap: 16px;
}
.tgcf-layout-dropdown textarea[name="message"] {
    min-height: 140px;
}
.tgcf-layout-dropdown .tgcf-form-footer {
    display: none;
}

/* ======================== POPUP TRIGGER ======================== */
.tgcf-popup-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--tgcf-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 16px 35px rgba(var(--tgcf-primary-rgb), 0.24);
}
.tgcf-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tgcf-popup-modal[hidden] {
    display: none;
}
.tgcf-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 24, 0.72);
}
.tgcf-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 40px);
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.tgcf-popup-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff !important;
    color: #111827;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.tgcf-popup-content {
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 18px;
}
.tgcf-popup-content > *:first-child {
    margin-top: 0;
}
.tgcf-popup-content .tgcf-form-wrapper {
    margin: 0;
}
body.tgcf-popup-open {
    overflow: hidden;
}
@media (max-width: 767px) {
    .tgcf-popup-modal {
        padding: 12px;
    }
    .tgcf-popup-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
    }
    .tgcf-popup-content {
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }
    .tgcf-popup-close {
        top: -14px;
        right: -4px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .tgcf-layout-dropdown .tgcf-form-title,
    .tgcf-layout-default .tgcf-form-title {
        font-size: 2rem;
    }
}

/* ========== COMPACT HERO FORM ========== */
.tgcf-layout-compact {
    max-width: 100%;
}
.tgcf-layout-compact .tgcf-form-inner {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.tgcf-layout-compact .tgcf-form-inner::before,
.tgcf-layout-compact .tgcf-form-footer,
.tgcf-layout-compact .tgcf-form-header {
    display: none;
}
.tgcf-layout-compact .tgcf-form {
    padding: 0;
}
.tgcf-layout-compact .tgcf-row {
    gap: 14px;
    margin-bottom: 14px;
}
.tgcf-layout-compact .tgcf-field,
.tgcf-layout-compact .tgcf-field-full {
    margin-bottom: 14px;
}
.tgcf-layout-compact .tgcf-label {
    display: none;
}
.tgcf-layout-compact .tgcf-input-wrap,
.tgcf-layout-compact .tgcf-select-wrap,
.tgcf-layout-compact textarea,
.tgcf-layout-compact .tgcf-select,
.tgcf-layout-compact input[type="text"],
.tgcf-layout-compact input[type="tel"],
.tgcf-layout-compact input[type="email"] {
    background: rgba(255,255,255,0.96);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: none;
}
.tgcf-layout-compact .tgcf-input-wrap,
.tgcf-layout-compact .tgcf-select-wrap {
    min-height: 54px;
    border-radius: 12px;
}
.tgcf-layout-compact .tgcf-input-wrap input,
.tgcf-layout-compact .tgcf-select,
.tgcf-layout-compact textarea {
    font-size: 15px;
}
.tgcf-layout-compact textarea {
    min-height: 150px;
    border-radius: 12px;
}
.tgcf-layout-compact .tgcf-map-container {
    margin-top: 10px;
}
.tgcf-layout-compact .tgcf-privacy-field {
    margin-bottom: 10px;
}
.tgcf-layout-compact .tgcf-privacy-label {
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}
.tgcf-layout-compact .tgcf-privacy-text a {
    color: inherit;
    text-decoration: underline;
}
.tgcf-layout-compact .tgcf-submit-btn {
    min-height: 56px;
    border-radius: 12px;
    box-shadow: none;
}
.tgcf-layout-compact .tgcf-submit-arrow {
    display: none;
}
.tgcf-layout-compact .tgcf-success {
    border-radius: 16px;
}
@media (max-width: 767px) {
    .tgcf-layout-compact .tgcf-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    .tgcf-layout-compact .tgcf-field,
    .tgcf-layout-compact .tgcf-field-full {
        margin-bottom: 12px;
    }
    .tgcf-layout-compact textarea {
        min-height: 130px;
    }
}


/* ========== PLAIN SHORTCODE ========== */
.tgcf-layout-plain{max-width:100%;}
.tgcf-layout-plain .tgcf-form-inner{background:transparent;border:0;box-shadow:none;overflow:visible;}
.tgcf-layout-plain .tgcf-form-inner::before,.tgcf-layout-plain .tgcf-form-header,.tgcf-layout-plain .tgcf-form-footer{display:none;}
.tgcf-layout-plain .tgcf-form{padding:0;}


.tgcf-layout-plain-scroll{max-width:100%;--tgcf-plain-scroll-height:72vh;}
.tgcf-layout-plain-scroll .tgcf-form-inner{background:transparent;border:0;box-shadow:none;overflow:visible;}
.tgcf-layout-plain-scroll .tgcf-form-inner::before,.tgcf-layout-plain-scroll .tgcf-form-header,.tgcf-layout-plain-scroll .tgcf-form-footer{display:none;}
.tgcf-layout-plain-scroll .tgcf-form{padding:0;max-height:var(--tgcf-plain-scroll-height,72vh);overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(var(--tgcf-primary-rgb),.45) transparent;}
.tgcf-layout-plain-scroll .tgcf-form::-webkit-scrollbar{width:10px;}
.tgcf-layout-plain-scroll .tgcf-form::-webkit-scrollbar-track{background:transparent;}
.tgcf-layout-plain-scroll .tgcf-form::-webkit-scrollbar-thumb{background:rgba(var(--tgcf-primary-rgb),.35);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
.tgcf-layout-plain-scroll .tgcf-form::-webkit-scrollbar-thumb:hover{background:rgba(var(--tgcf-primary-rgb),.55);border:2px solid transparent;background-clip:padding-box;}
@media (max-width:767px){.tgcf-layout-plain-scroll .tgcf-form{max-height:min(var(--tgcf-plain-scroll-height,72vh),68vh);padding-right:6px;}}
@media (max-width:520px){.tgcf-layout-plain-scroll .tgcf-form{max-height:min(var(--tgcf-plain-scroll-height,72vh),64vh);padding-right:4px;}}


/* ========== MOBILE SERVICE BOX TAP FIX ========== */
.tgcf-service-box{-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.tgcf-service-box-inner{width:100%;max-width:100%;min-width:0}
.tgcf-service-label{display:block;width:100%;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.tgcf-service-icon,.tgcf-service-check,.tgcf-service-box-inner *{pointer-events:none}

@media (max-width:768px){
  .tgcf-layout-default .tgcf-services-grid,.tgcf-layout-embed .tgcf-services-grid,.tgcf-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .tgcf-service-box-inner{padding:14px 8px 12px!important;min-height:78px!important}
}

@media (max-width:420px){
  .tgcf-layout-default .tgcf-services-grid,.tgcf-layout-embed .tgcf-services-grid,.tgcf-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .tgcf-service-box-inner{padding:12px 6px 10px!important;min-height:74px!important}
  .tgcf-service-label{font-size:11px!important;line-height:1.15!important}
}
