/* ===== INTERACTIVE CALCULATORS ===== */

.calc-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Steps */
.calc-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.calc-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.calc-step-dot.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.calc-step-dot.completed {
    background: #d1fae5;
    color: #059669;
    border-color: #a7f3d0;
}

.calc-step-dot .step-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
}

.calc-step-dot.active .step-num {
    background: rgba(255,255,255,0.25);
}

.calc-step-dot.completed .step-num {
    background: #059669;
    color: #fff;
}

/* Step Content */
.calc-step-content {
    display: none;
    animation: calcFadeIn 0.3s ease;
}

.calc-step-content.active {
    display: block;
}

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

/* Form Groups */
.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.calc-form.single-col {
    grid-template-columns: 1fr;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field.full-width {
    grid-column: 1 / -1;
}

.calc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-label .calc-hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.78rem;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.calc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 185, 237, 0.12);
}

.calc-input::placeholder {
    color: #c0c7d0;
}

/* Input with prefix/suffix */
.calc-input-wrap {
    position: relative;
}

.calc-input-wrap .calc-input {
    padding-left: 32px;
}

.calc-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    pointer-events: none;
}

.calc-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    pointer-events: none;
}

.calc-input-wrap .calc-input.has-suffix {
    padding-right: 40px;
}

/* Select */
.calc-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.calc-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 185, 237, 0.12);
}

/* Slider */
.calc-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(49, 185, 237, 0.3);
}

.calc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.calc-slider-value {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Navigation */
.calc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f1f4;
}

.calc-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.calc-btn-back {
    background: #f3f4f6;
    color: #374151;
}

.calc-btn-back:hover {
    background: #e5e7eb;
}

.calc-btn-next {
    background: var(--primary);
    color: #fff;
}

.calc-btn-next:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.calc-btn-calculate {
    background: var(--cta, #f2b843);
    color: #1a1a2e;
    font-weight: 700;
    padding: 14px 36px;
    font-size: 1rem;
}

.calc-btn-calculate:hover {
    background: var(--cta-hover, #e5a52e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 184, 67, 0.3);
}

/* Results */
.calc-results {
    display: none;
    animation: calcFadeIn 0.4s ease;
}

.calc-results.show {
    display: block;
}

.calc-results-header {
    text-align: center;
    margin-bottom: 32px;
}

.calc-results-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.calc-results-header p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Result Cards */
.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.calc-result-card {
    padding: 24px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.calc-result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.calc-result-card.highlight {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary);
}

.calc-result-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.calc-result-card.highlight .calc-result-value {
    font-size: 2.5rem;
}

.calc-result-label {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Scenario Table */
.calc-scenarios {
    margin: 24px 0;
}

.calc-scenarios h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.calc-scenario-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.calc-scenario-table th {
    background: #f8f9fb;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
}

.calc-scenario-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f0f1f4;
}

.calc-scenario-table tr:last-child td {
    border-bottom: none;
}

.calc-scenario-table tr.recommended {
    background: #eff6ff;
}

.calc-scenario-table tr.recommended td {
    font-weight: 600;
    color: var(--primary);
}

.calc-scenario-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}

/* Breakdown Bar Chart */
.calc-bar-chart {
    margin: 24px 0;
}

.calc-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.calc-bar-label {
    width: 140px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #374151;
    flex-shrink: 0;
}

.calc-bar-track {
    flex: 1;
    height: 28px;
    background: #f0f1f4;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.calc-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    min-width: 40px;
    transition: width 0.8s ease;
}

.calc-bar-fill.bar-google { background: #4285F4; }
.calc-bar-fill.bar-meta { background: #1877F2; }
.calc-bar-fill.bar-linkedin { background: #0A66C2; }
.calc-bar-fill.bar-tiktok { background: #010101; }
.calc-bar-fill.bar-seo { background: #059669; }
.calc-bar-fill.bar-email { background: #7C3AED; }
.calc-bar-fill.bar-social { background: #EC4899; }
.calc-bar-fill.bar-content { background: #F59E0B; }

.calc-bar-amount {
    width: 80px;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
}

/* CTA in results */
.calc-results-cta {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    margin-top: 32px;
}

.calc-results-cta h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.calc-results-cta p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 16px;
}

/* Reset button */
.calc-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.calc-reset:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-form { grid-template-columns: 1fr; }
    .calc-result-grid { grid-template-columns: 1fr; }
    .calc-steps { gap: 6px; }
    .calc-step-dot { padding: 8px 12px; font-size: 0.75rem; }
    .calc-bar-label { width: 100px; font-size: 0.78rem; }
    .calc-bar-amount { width: 60px; font-size: 0.82rem; }
    .calc-scenario-table { font-size: 0.82rem; }
    .calc-scenario-table th, .calc-scenario-table td { padding: 10px 12px; }
}
