/* Teraleads Form Styles 
 * File: teraforms/assets/css/teraforms-form.css
 * */
.teraforms-form-wrapper {
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.teraforms-form-container {
    background: #fff;
    overflow: visible !important;
    box-sizing: border-box;
    max-width: 100%;
}

.teraforms-form-title {
    margin: 0 0 1rem 0;
    font-size: 30px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    text-align: center;
}

.teraforms-form-description {
    margin: 0 0 2rem 0;
    color: #666;
    line-height: 1.6;
}

.teraforms-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.teraforms-field {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
}

.teraforms-field.half-width {
    flex: 1 1 calc(50% - 0.75rem);
}

.teraforms-field.conditional-field {
    display: none;
}

.teraforms-field.conditional-field.show {
    display: flex;
}

.teraforms-field.conditional-hidden {
    display: none;
}

.teraforms-field label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.teraforms-field .required {
    color: #e74c3c;
}

.teraforms-input,
.teraforms-textarea,
.teraforms-select {
    width: 100%;
    padding: 14px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
/*     transition: border-color 0.3s; */
}

.teraforms-input:focus,
.teraforms-textarea:focus,
.teraforms-select:focus {
    outline: none;
    border-color: #3498db;
}

.teraforms-textarea {
    resize: vertical;
}

.teraforms-radio-group,
.teraforms-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teraforms-radio-label,
.teraforms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.teraforms-radio-label input,
.teraforms-checkbox-label input {
    width: auto;
    margin: 0;
}

.teraforms-error-message {
    color: #e74c3c;
    margin-top: 0.25rem;
    display: block;
}

.teraforms-error-message:empty {
}

.teraforms-field.error .teraforms-error-message {
    display: block;
}

.teraforms-field.error .teraforms-input,
.teraforms-field.error .teraforms-textarea,
.teraforms-field.error .teraforms-select {
    border-color: #e74c3c;
}

/* Valid field checkmark — see theme-modern-capsule.css for ::after implementation */

/* Zip validation inline spinner */
.teraforms-zip-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ddd;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

.teraforms-select:focus,
.teraforms-select:active {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.teraforms-select {
   /* Remove 3D transform hacks - they break iOS select */
    transition: none !important;
    animation: none !important;
    /* Add iOS-specific fixes */
    -webkit-appearance: menulist;
    appearance: menulist;
}

.teraforms-form-actions {
    margin-top: 2rem;
}

.teraforms-submit-btn {
    background: #3498db;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
/*     font-size: 1rem; */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 599px) {
    .teraforms-submit-btn {
        width: 100%;
    }
    .teraforms-form-container {
        /* margin-top: 30px !important; */
    }
}

.teraforms-submit-btn:hover {
    background: #2980b9;
}

.teraforms-submit-btn:disabled {
    background: linear-gradient(135deg, #ffc36b 0%, #ffbb56 100%);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.75;
}

.teraforms-form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
}

.teraforms-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.teraforms-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* OTP Modal */
.teraforms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.teraforms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.teraforms-modal-content {
    position: relative;
    max-width: 340px;
    width: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 5rem 1.5rem;
    top: 40%;
    transform: translateY(-50%);
}

@media (min-width: 480px) {
    .teraforms-modal-content {
        max-width: 400px;
    }
}

.teraforms-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    z-index: 1;
}

.teraforms-modal-close:hover,
.teraforms-modal-close:focus{
    color: #333;
	background:none
}

.teraforms-modal-body {
    text-align: center;
}

.teraforms-modal-body h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #1a1a1a;
}

.teraforms-modal-body p {
    margin: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.5;
}

.teraforms-otp-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
    /* Prevent the group from ever exceeding the viewport on keyboard open */
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.teraforms-otp-input {
    /* Use flex-based sizing so boxes shrink gracefully if viewport narrows */
    flex: 1 1 0;
    min-width: 44px;
    max-width: 68px;
    width: auto;
    height: 50px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
    background: #fff;
    font-size: 16px; /* Prevent iOS Safari auto-zoom on focus */
    box-sizing: border-box;
}

.teraforms-otp-input:focus {
    outline: none;
    border-color: #3498db;
}

.teraforms-otp-message {
    text-align: center;
    border-radius: 6px;
}

.teraforms-otp-message.error {
    color: red;
	display:block !important
}

.teraforms-otp-message.success {
    color: #0b9e0b;
	display:block !important
}

.teraforms-otp-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.teraforms-resend-otp-section {
    text-align: center;
    color: #666;
}

.teraforms-resend-prefix {
    color: #666;
}

.teraforms-resend-otp-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
    display: inline;
    font-weight: 500;
}

.teraforms-resend-otp-btn:hover{
	background: none;
	color: #1a1a1a;
}

.teraforms-resend-otp-btn:not(:disabled) {
    color: #1a1a1a;
    text-decoration: underline;
}

.teraforms-resend-otp-btn:not(:disabled):hover {
    color: #3498db;
}

.teraforms-resend-otp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: #999;
    text-decoration: none;
}

.teraforms-resend-countdown {
    font-weight: 600;
}

.teraforms-verify-otp-btn {
    padding:15px;
    border: none;
    border-radius: 6px;
	width:200px;
	margin:15px auto;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #ffa500;
    color: #fff;
}

.teraforms-verify-otp-btn:hover {
    background: #ff8c00;
}

.teraforms-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.teraforms-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* International Phone Input Styling */
.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
    padding: 14px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: inherit;
    transition: border-color 0.3s;
}

.iti__tel-input:focus {
    outline: none;
    border-color: #3498db;
}

.teraforms-field.error .iti__tel-input {
    border-color: #e74c3c;
}

.iti__flag-container {
    padding: 0 0.5rem;
}

.iti__selected-flag {
    padding: 0 0.5rem;
}

.iti__country-list {
    max-height: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.teraforms-resend-otp-btn:hover, .teraforms-resend-otp-btn:focus{
	background:none !important;
}

/* iOS Safari Select Fixes */
@supports (-webkit-touch-callout: none) {
    /* Targets iOS Safari only */
    .teraforms-select {
        /* Ensure native select works */
        -webkit-appearance: menulist-button !important;
        appearance: menulist-button !important;
        
        /* Remove any transforms */
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        -webkit-perspective: none !important;
        perspective: none !important;
        
        /* Ensure proper z-index */
        position: relative;
        z-index: 1;
    }
    
    /* Make sure select is tappable */
    .teraforms-field select {
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
}

.sgpb-popup-dialog-main-div-theme-wrapper-3 .teraforms-form-container{
	    padding: 10px !important;
    box-shadow: none !important;

}

.sgpb-popup-dialog-main-div-theme-wrapper-3 .teraforms-form-container .form-title{
	display:none
}

.sgpb-popup-dialog-main-div-theme-wrapper-3 .teraforms-form-wrapper{
	margin:0rem auto 2rem;
}

/* Responsive */
@media (max-width: 640px) {
    .teraforms-field.half-width {
        flex: 1 1 100%;
    }
    
    .teraforms-otp-input {
        height: 52px;
        font-size: 1.25rem;
        /* flex: 1 1 0 from base rule handles width — no fixed width here */
    }
}

/* =============================
   Exit Intent Popup (Bottom Sheet on Mobile, Centered Modal on Desktop)
   ============================= */

.teraforms-exit-popup-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 36px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.18);
}

.teraforms-exit-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
}

.teraforms-exit-popup-close:hover {
    color: #444;
    background: #f5f5f5;
}

.teraforms-exit-popup-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    display: block;
}

.teraforms-exit-popup-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.teraforms-exit-popup-message {
    font-size: 1.45rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 22px;
}

.teraforms-exit-popup-cta {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f08f00 0%, #ffae37 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.teraforms-exit-popup-cta:hover,
.teraforms-exit-popup-cta:active {
    background: linear-gradient(135deg, #d97e00 0%, #f0a020 100%);
}

.teraforms-exit-popup-dismiss {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.teraforms-exit-popup-dismiss:hover {
    color: #555;
}

/* Desktop: centered modal */
@media (min-width: 600px) {
    .teraforms-exit-popup-sheet {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        max-width: 400px;
        width: 90%;
        margin: 0 auto;
        border-radius: 16px;
        padding: 2rem 1.75rem 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    }
}

/* ─── Multi-step form styles (v5.0.97) ─────────────────────────────────────── */

.tf-step {
    display: none;
    width: 100%;
}

.tf-step.tf-step-active {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.tf-multistep .tf-step .teraforms-field.half-width {
    flex: 1 1 calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem) !important;
}

/* ---- Step indicator (numbered dots + labels) ---- */
.tf-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0 4px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.tf-si-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.3s;
    min-width: 16px;
}

.tf-si-line.tf-si-done {
    background: #f08f00;
}

.tf-si-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.tf-si-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    position: relative;
}

.tf-si-num { display: block; }
.tf-si-check { display: none; }

.tf-si-step.tf-si-active .tf-si-dot {
    border-color: #f08f00;
    background: #fff;
    color: #f08f00;
}

.tf-si-step.tf-si-done .tf-si-dot {
    border-color: #f08f00;
    background: #f08f00;
    color: #fff;
}

.tf-si-step.tf-si-done .tf-si-num { display: none; }
.tf-si-step.tf-si-done .tf-si-check { display: block; }

.tf-si-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
    transition: color 0.3s;
}

.tf-si-step.tf-si-active .tf-si-label {
    color: #f08f00;
    font-weight: 700;
}

.tf-si-step.tf-si-done .tf-si-label {
    color: #f08f00;
}

/* Progress bar (thin line below indicator) */
.tf-progress-wrap {
    margin-bottom: 1.5rem;
    display: none;
}

.tf-progress {
    height: 3px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.tf-progress-bar {
    height: 100%;
    background: #f08f00;
    border-radius: 3px;
    transition: width 0.35s ease;
}

/* Next / Back navigation */
.tf-step-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
    width: 100%;
}

.tf-btn-next {
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: #f08f00;
    color: #fff;
    letter-spacing: 0.3px;
    text-align: center;
}

.tf-btn-next:hover {
    background: #d97e00;
}

.tf-btn-next:disabled {
    opacity: 0.8;
    cursor: default;
}

/* Inline spinner for Next/Verify buttons */
.tf-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tf-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.tf-btn-back {
    width: auto;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: transparent;
    color: #9ca3af;
    align-self: center;
}

.tf-btn-back:hover {
    color: #6b7280;
}

/* Submit inside nav row on last step */
.tf-step-nav .teraforms-form-actions {
    width: 100%;
}

.tf-step-nav .teraforms-form-actions .teraforms-submit-btn {
    width: 100%;
    border-radius: 50px;
}

/* ─── End multi-step styles ─────────────────────────────────────────────────── */

/* ─── intl-tel-input flag fix ───────────────────────────────────────────────────
   WPForms injects .iti__flag.iti__XX { background-position: Xpx 0px } globally,
   overriding iti's CSS-variable-based positioning. Reset background-position
   inside our wrapper so iti's own --iti-flag-offset variable takes effect.    */
.teraforms-form-wrapper .iti__flag[class*="iti__"] {
    /* background-position: var(--iti-flag-offset, 0) 0 !important; */
}
/* ─── End flag fix ──────────────────────────────────────────────────────────── */

/* ============================================================
   Inline OTP Slide Step (v5.1.6)
   ============================================================ */

/* Suppress legacy modal permanently */
#teraforms-otp-modal {
    display: none !important;
}

/* ── Three-panel slide system ─────────────────────────────── */

/*
 * Off-screen panels are position:absolute + visibility:hidden so they
 * never extend beyond the wrapper boundary — no translateX on idle panels,
 * no iOS horizontal scroll. Only the transitioning panels animate.
 * .tf-slide-clip clips any translateX overshoot during the 350ms animation.
 */
.tf-slide-clip {
    width: 100%;
    overflow: hidden !important;
    position: relative;
    /* iOS Safari: isolation creates a stacking context so overflow:hidden clips translated children */
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Prevent iOS horizontal scroll during slide transitions */
.teraforms-form-wrapper {
    overflow-x: hidden;
    /* Belt-and-suspenders for iOS Safari */
    -webkit-overflow-scrolling: touch;
}

.tf-slide-viewport {
    width: 100%;
    position: relative;
}

.tf-slide-track {
    position: relative;
    width: 100%;
}

/* Base: all panels stacked at same position, hidden and out of flow */
.tf-slide-track > form,
.tf-slide-track > .tf-otp-step,
.tf-slide-track > .tf-success-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
}

/* Default active panel: form is in-flow and visible */
.tf-slide-track > form {
    position: relative;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Prep: position entering panel off-screen before transition starts ── */
/* Forward: entering panel starts off-screen right */
.tf-slide-track.tf-slide-prep-otp > .tf-otp-step {
    transform: translateX(100%);
    visibility: visible;
    transition: none;
}
.tf-slide-track.tf-slide-prep-success > .tf-success-step {
    transform: translateX(100%);
    visibility: visible;
    transition: none;
}
/* Back animation handled entirely via JS inline styles — no CSS class needed */

/* ── Show OTP panel ── */
.tf-slide-track.tf-show-otp > form {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
}
.tf-slide-track.tf-show-otp > .tf-otp-step {
    position: relative;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Show success panel ── */
.tf-slide-track.tf-show-success > form {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
}
.tf-slide-track.tf-show-success > .tf-otp-step {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
}
.tf-slide-track.tf-show-success > .tf-success-step {
    position: relative;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success step layout */
.tf-success-step {
    padding: 1rem 0;
}

/* Hide the heading inside .free-consulation-contact-us when success panel is active */
.free-consulation-contact-us:has(.tf-slide-track.tf-show-success) h1.brxe-heading {
    display: none;
}

/* OTP step layout */
.tf-otp-step {
    padding: 0.5rem 0 1.5rem 0;
    position: relative;
    /* Prevent iOS keyboard/autofill bar reflow from causing horizontal scroll */
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Summary card */
.tf-otp-summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.tf-otp-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tf-otp-summary-check {
    font-weight: 600;
    color: #2e7d32;
}

.tf-otp-edit-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
}

.tf-otp-edit-btn:hover {
    background: #f0f0f0;
}

.tf-otp-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tf-otp-summary-list li {
    font-size: 14px;
    color: #444;
    display: flex;
    gap: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 600px) {
    .tf-otp-summary-list li {
        display: block;
    }
}

.tf-otp-summary-list li strong {
    color: #222;
    min-width: 70px;
    flex-shrink: 0;
}

/* Verify section */
.tf-otp-verify-section {
    margin-bottom: 1rem;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tf-otp-verify-heading {
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    font-size: 2rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tf-otp-verify-desc {
    color: #666;
    margin: 0 0 1rem 0;
}

.tf-otp-verify-btn {
    width: 100%;
    max-width: 220px;
    margin-top: 1rem;
}

/* Resend section */
.tf-otp-resend-section {
    text-align: center;
    margin-top: 0.5rem;
}

/* Loading overlay for inline step */
.tf-otp-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
}
/* OTP step progress indicator */
.tf-otp-stepper {
    display: none !important; /* temporary — re-enable when stepper is ready */
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.tf-otp-stepper-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.tf-otp-stepper-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tf-otp-stepper-step.tf-otp-stepper-active {
    color: #2e7d32;
}

.tf-otp-stepper-step.tf-otp-stepper-active .tf-otp-stepper-icon {
    background: #2e7d32;
}

.tf-otp-stepper-step.tf-otp-stepper-current {
    color: #e67e00;
}

.tf-otp-stepper-step.tf-otp-stepper-current .tf-otp-stepper-icon {
    background: #e67e00;
}

.tf-otp-stepper-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.tf-otp-stepper-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #2e7d32;
    transition: width 0.35s ease;
}

.tf-otp-stepper.step-verify .tf-otp-stepper-line::after {
    width: 100%;
}
/* ─── End Inline OTP Slide Step ─────────────────────────────────────────────── */



/* ─── What Happens Next Widget ───────────────────────────────────────────────── */
.tf-widget-whn {
    margin: 40px 0;
    padding: 20px 20px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.tf-whn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tf-whn-line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.tf-whn-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #9ca3af;
    white-space: nowrap;
    text-transform: uppercase;
}

.tf-whn-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tf-whn-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tf-whn-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #cdcfcf;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tf-whn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}

.tf-whn-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.tf-whn-text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
/* ─── End What Happens Next Widget ──────────────────────────────────────────── */

/* ─── Reviews Widget ─────────────────────────────────────────────────────────── */
.tf-widget-reviews {
    margin: 16px 0;
}

.tf-reviews-widget {
    font-family: inherit;
}

.tf-rc-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.tf-rc-stars-summary {
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.tf-rc-summary-text {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.tf-rc-track {
    display: none;
}

.tf-rc-track::-webkit-scrollbar {
    display: none;
}

.tf-rc-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
}

.tf-rc-stars {
    color: #f5a623;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.tf-rc-text {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-rc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.tf-rc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.tf-rc-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-rc-date {
    font-size: 11px;
    color: #9ca3af;
    display: block;
}

/* Doctor card */
.tf-rc-doc-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
    margin-bottom: 14px;
}

.tf-rc-doc-img {
    width: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.tf-rc-doc-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    background: #e5e7eb;
}

.tf-rc-doc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tf-rc-doc-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.tf-rc-doc-heading {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.tf-rc-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 2px;
    width: fit-content;
}

.tf-rc-doc-check {
    font-size: 10px;
}
/* ─── End Reviews Widget ─────────────────────────────────────────────────────── */

/* ─── Before & After Widget ──────────────────────────────────────────────────── */
.tf-ba-widget {
    margin: 25px 0;
}

@media (min-width: 769px) {
    .tf-widget-before-after {
        display: none;
    }
}

.tf-ba-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.tf-ba-subheading {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.tf-ba-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tf-ba-track::-webkit-scrollbar {
    display: none;
}

.tf-ba-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.tf-ba-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.tf-ba-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.tf-ba-badge {
    position: absolute;
    top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.tf-ba-badge--before {
    left: 8px;
    background: #555;
}

.tf-ba-badge--after {
    right: 8px;
    background: #2a9d8f;
}

/* ─── End Before & After Widget ──────────────────────────────────────────────── */

/* ─── Social Proof Widget ────────────────────────────────────────────────────── */
.tf-widget-social-proof {
    margin-top: 30px;
}
.tf-sp-widget {
    background: #1a1f2e;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 16px 0;
    color: #fff;
}

.tf-sp-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-sp-google-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tf-sp-rating-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tf-sp-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tf-sp-rating-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.tf-sp-stars {
    display: flex;
    gap: 1px;
}

.tf-sp-star {
    color: #f5a623;
    font-size: 16px;
    line-height: 1;
}

.tf-sp-review-count {
    font-size: 12px;
    color: #9ca3af;
}

.tf-sp-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 14px 0;
}

.tf-sp-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-sp-bullet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.4;
}

.tf-sp-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
/* ─── End Social Proof Widget ────────────────────────────────────────────────── */

/* ─── IAB Browser Banner ─────────────────────────────────────────────────────── */
.tf-iab-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
}
.tf-iab-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    padding: 20px 20px max(36px, env(safe-area-inset-bottom));
    z-index: 99999;
    animation: tf-iab-slidein 0.32s cubic-bezier(0.32,0.72,0,1);
    box-sizing: border-box;
}
@keyframes tf-iab-slidein {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.tf-iab-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.tf-iab-banner-icon {
    font-size: 26px;
    background: #fff3ef;
    border-radius: 10px;
    padding: 8px 10px;
    flex-shrink: 0;
    line-height: 1;
}
.tf-iab-banner-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}
.tf-iab-banner-text span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.tf-iab-open-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    background: #e05a2b;
    color: #fff !important;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 10px;
}
.tf-iab-dismiss {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}
.tf-iab-secure {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin: 6px 0 0;
}
/* ─── End IAB Browser Banner ─────────────────────────────────────────────────── */

/* ─── Form Banner (utm_network conditional) ──────────────────────────────────── */
.tf-form-banner {
    background: #f97316;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 12px;
}
/* ─── End Form Banner ────────────────────────────────────────────────────────── */
