<style> /* Reset and Base Styles with High Specificity */<br /> #cpmc-wrapper.cpmc-wrapper,<br /> #cpmc-wrapper.cpmc-wrapper *,<br /> #cpmc-wrapper.cpmc-wrapper *::before,<br /> #cpmc-wrapper.cpmc-wrapper *::after {<br /> box-sizing: border-box !important;<br /> margin: 0 !important;<br /> padding: 0 !important;<br /> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;<br /> -webkit-user-select: none !important;<br /> -moz-user-select: none !important;<br /> -ms-user-select: none !important;<br /> user-select: none !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper {<br /> max-width: 940px !important;<br /> min-height: auto !important;<br /> margin: 0 auto !important;<br /> padding: 24px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-title {<br /> font-size: 28px !important;<br /> font-weight: 700 !important;<br /> color: #1a1f36 !important;<br /> text-align: center !important;<br /> margin-bottom: 24px !important;<br /> letter-spacing: -0.5px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-title .cpmc-title-highlight {<br /> color: #4150F6 !important;<br /> }<br /> /* Tab Navigation */<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tabs {<br /> display: flex !important;<br /> gap: 12px !important;<br /> margin-bottom: 24px !important;<br /> flex-wrap: wrap !important;<br /> justify-content: center !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab {<br /> flex: 1 !important;<br /> min-width: 140px !important;<br /> max-width: 280px !important;<br /> padding: 14px 20px !important;<br /> border: 2px solid #e2e6f3 !important;<br /> border-radius: 12px !important;<br /> background: #ffffff !important;<br /> cursor: pointer !important;<br /> transition: all 0.25s ease !important;<br /> display: flex !important;<br /> align-items: center !important;<br /> justify-content: center !important;<br /> gap: 10px !important;<br /> font-size: 15px !important;<br /> font-weight: 500 !important;<br /> color: #5a6178 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab:hover {<br /> border-color: #4150F6 !important;<br /> background: #f8f9ff !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab.cpmc-tab-active {<br /> border-color: #4150F6 !important;<br /> background: linear-gradient(135deg, #4150F6 0%, #5a68f7 100%) !important;<br /> color: #ffffff !important;<br /> box-shadow: 0 4px 16px rgba(65, 80, 246, 0.25) !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab-radio {<br /> width: 18px !important;<br /> height: 18px !important;<br /> border: 2px solid #c8cdd9 !important;<br /> border-radius: 50% !important;<br /> display: flex !important;<br /> align-items: center !important;<br /> justify-content: center !important;<br /> transition: all 0.25s ease !important;<br /> flex-shrink: 0 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab.cpmc-tab-active .cpmc-tab-radio {<br /> border-color: #ffffff !important;<br /> background: #ffffff !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab.cpmc-tab-active .cpmc-tab-radio::after {<br /> content: '' !important;<br /> width: 8px !important;<br /> height: 8px !important;<br /> background: #4150F6 !important;<br /> border-radius: 50% !important;<br /> }<br /> /* Main Content Layout */<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-content {<br /> display: flex !important;<br /> gap: 24px !important;<br /> flex-wrap: wrap !important;<br /> }<br /> /* Form Section */<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-form-section {<br /> flex: 1 !important;<br /> min-width: 280px !important;<br /> background: #ffffff !important;<br /> border-radius: 14px !important;<br /> padding: 24px !important;<br /> border: 1px solid #e8ebf4 !important;<br /> box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-section-title {<br /> font-size: 18px !important;<br /> font-weight: 600 !important;<br /> color: #1a1f36 !important;<br /> margin-bottom: 20px !important;<br /> padding-bottom: 12px !important;<br /> border-bottom: 2px solid #f0f2f8 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-form-group {<br /> margin-bottom: 18px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-label {<br /> display: block !important;<br /> font-size: 15px !important;<br /> font-weight: 600 !important;<br /> color: #3d4463 !important;<br /> margin-bottom: 8px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input-wrapper {<br /> position: relative !important;<br /> display: flex !important;<br /> align-items: center !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input-prefix {<br /> position: absolute !important;<br /> left: 14px !important;<br /> font-size: 15px !important;<br /> color: #8b91a7 !important;<br /> font-weight: 500 !important;<br /> z-index: 1 !important;<br /> pointer-events: none !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input {<br /> width: 100% !important;<br /> padding: 14px 16px 14px 32px !important;<br /> font-size: 15px !important;<br /> border: 2px solid #e2e6f3 !important;<br /> border-radius: 10px !important;<br /> background: #fafbfd !important;<br /> color: #1a1f36 !important;<br /> transition: all 0.25s ease !important;<br /> outline: none !important;<br /> -webkit-user-select: text !important;<br /> -moz-user-select: text !important;<br /> -ms-user-select: text !important;<br /> user-select: text !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input:focus {<br /> border-color: #4150F6 !important;<br /> background: #ffffff !important;<br /> box-shadow: 0 0 0 4px rgba(65, 80, 246, 0.1) !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input::placeholder {<br /> color: #a8aec4 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-input.cpmc-input-readonly {<br /> background: linear-gradient(135deg, #f0f2f8 0%, #e8ebf4 100%) !important;<br /> color: #5a6178 !important;<br /> cursor: not-allowed !important;<br /> border-color: #e2e6f3 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-btn-reset {<br /> width: 100% !important;<br /> padding: 14px 24px !important;<br /> font-size: 15px !important;<br /> font-weight: 600 !important;<br /> background: #f5f6fa !important;<br /> color: #5a6178 !important;<br /> border: 2px solid #e2e6f3 !important;<br /> border-radius: 10px !important;<br /> cursor: pointer !important;<br /> transition: all 0.25s ease !important;<br /> margin-top: 8px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-btn-reset:hover {<br /> background: #eef0f7 !important;<br /> border-color: #d0d5e4 !important;<br /> color: #3d4463 !important;<br /> }<br /> /* Result Section */<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-section {<br /> flex: 0 0 280px !important;<br /> background: #ffffff !important;<br /> border-radius: 14px !important;<br /> padding: 24px !important;<br /> border: 1px solid #e8ebf4 !important;<br /> box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;<br /> display: flex !important;<br /> flex-direction: column !important;<br /> align-items: center !important;<br /> justify-content: center !important;<br /> text-align: center !important;<br /> min-height: 200px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-label {<br /> font-size: 13px !important;<br /> font-weight: 700 !important;<br /> color: #4150F6 !important;<br /> text-transform: uppercase !important;<br /> letter-spacing: 1.5px !important;<br /> margin-bottom: 12px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-value {<br /> font-size: 48px !important;<br /> font-weight: 800 !important;<br /> color: #4150F6 !important;<br /> line-height: 1 !important;<br /> margin-bottom: 16px !important;<br /> background: linear-gradient(135deg, #4150F6 0%, #6b78f8 100%) !important;<br /> -webkit-background-clip: text !important;<br /> -webkit-text-fill-color: transparent !important;<br /> background-clip: text !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-subtitle {<br /> font-size: 15px !important;<br /> color: #8b91a7 !important;<br /> font-weight: 500 !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-subtitle .cpmc-highlight {<br /> color: #4150F6 !important;<br /> font-weight: 600 !important;<br /> }<br /> /* Responsive Design */<br /> @media screen and (max-width: 768px) {<br /> #cpmc-wrapper.cpmc-wrapper {<br /> padding: 20px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-title {<br /> font-size: 24px !important;<br /> margin-bottom: 20px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tabs {<br /> flex-direction: column !important;<br /> gap: 10px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab {<br /> max-width: 100% !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-content {<br /> flex-direction: column !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-section {<br /> flex: 1 !important;<br /> min-height: 160px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-value {<br /> font-size: 40px !important;<br /> }<br /> }<br /> @media screen and (max-width: 480px) {<br /> #cpmc-wrapper.cpmc-wrapper {<br /> padding: 16px !important;<br /> border-radius: 12px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-title {<br /> font-size: 22px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-form-section,<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-section {<br /> padding: 18px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-tab {<br /> padding: 12px 16px !important;<br /> font-size: 15px !important;<br /> }<br /> #cpmc-wrapper.cpmc-wrapper .cpmc-result-value {<br /> font-size: 36px !important;<br /> }<br /> }<br /> </style> <h1>CPM Calculator</h1> Calculate CPM Calculate Cost Calculate Impressions Campaign Details <label>Total Cost ($)</label> $ <input id="cpmc-cost" min="0" step="0.01" type="number" placeholder="e.g. 500" /> <label>CPM Rate ($)</label> $ <input id="cpmc-rate" readonly="readonly" type="number" placeholder="Calculated Result" /> <label>Impressions (Count)</label> # <input id="cpmc-impressions" min="0" step="1" type="number" placeholder="e.g. 50000" /> <button>Reset Values</button> CPM (COST PER 1,000) $0 Cost per single impression: $0.0000