/* =============================================
   SEO Pricing Calculator — Wild Creek Web Studio
   ============================================= */

.spc-wrap {
    font-family: Arial, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: #333;
    line-height: 1.5;
}

/* ----- Section ----- */
.spc-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spc-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.spc-section-number {
    background: #1a56db;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.spc-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.spc-section-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* ----- Hint tooltip text ----- */
.spc-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* ----- Section 1: Table layout ----- */
.spc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.spc-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spc-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spc-row-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.spc-row-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a56db;
    text-align: right;
}

/* ----- Inputs ----- */
.spc-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1a202c;
    box-sizing: border-box;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.spc-input::-webkit-outer-spin-button,
.spc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.spc-input:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.spc-input-full {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1a202c;
    box-sizing: border-box;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.spc-input-full::-webkit-outer-spin-button,
.spc-input-full::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.spc-input-full:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.spc-input-sm {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1a202c;
    text-align: center;
    -moz-appearance: textfield;
}

.spc-input-sm::-webkit-outer-spin-button,
.spc-input-sm::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.spc-input-sm:focus {
    outline: none;
    border-color: #1a56db;
}

.spc-inline-input {
    width: 55px;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1a202c;
    text-align: center;
    margin: 0 2px;
    -moz-appearance: textfield;
}

.spc-inline-input::-webkit-outer-spin-button,
.spc-inline-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ----- Subtotals (Section 1) ----- */
.spc-subtotals {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.spc-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
}

.spc-subtotal-row:last-child {
    border-bottom: none;
}

.spc-subtotal-total {
    font-weight: 700;
    font-size: 1rem;
    color: #1a202c;
    padding-top: 12px;
}

.spc-amount {
    font-weight: 600;
    color: #1a56db;
}

.spc-highlight {
    font-size: 1.1rem;
    color: #0e9f6e;
}

/* ----- Fields (Section 2) ----- */
.spc-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.spc-field-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.spc-field-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 5px 0 0 0;
}

/* ----- Assumptions ----- */
.spc-assumptions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
}

.spc-assumptions-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spc-assumptions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.88rem;
    color: #4b5563;
    border-bottom: 1px solid #e2e8f0;
}

.spc-assumptions-row:last-child {
    border-bottom: none;
}

.spc-assumption-input {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    color: #374151;
}

/* ----- Projections (Section 2) ----- */
.spc-projections {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.spc-projection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.spc-projection-row:last-child {
    border-bottom: none;
}

.spc-projection-divider {
    height: 1px;
    background: #cbd5e1;
    margin: 4px 0;
}

.spc-projection-highlight {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a202c;
}

.spc-projection-highlight .spc-amount {
    color: #0e9f6e;
    font-size: 1rem;
}

/* ----- Section 3: Pricer ----- */
.spc-pricer-inputs {
    margin-bottom: 24px;
}

.spc-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.spc-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spc-result-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spc-result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a56db;
}

/* ----- Verdict ----- */
.spc-verdict {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.spc-verdict-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.spc-verdict-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a202c;
}

.spc-verdict-body {
    font-size: 0.88rem;
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.spc-verdict-go {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.spc-verdict-go .spc-verdict-title { color: #065f46; }

.spc-verdict-rework {
    background: #fff7ed;
    border-color: #fdba74;
}

.spc-verdict-rework .spc-verdict-title { color: #9a3412; }

.spc-verdict-warn {
    background: #fefce8;
    border-color: #fde047;
}

.spc-verdict-warn .spc-verdict-title { color: #713f12; }

.spc-verdict-neutral {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ----- Responsive ----- */
@media (max-width: 680px) {
    .spc-section {
        padding: 20px 16px;
    }

    .spc-table-head,
    .spc-table-row {
        grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
        gap: 6px;
    }

    .spc-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spc-assumptions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .spc-table-head { display: none; }

    .spc-table-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .spc-row-label {
        grid-column: 1 / -1;
    }

    .spc-results-grid {
        grid-template-columns: 1fr 1fr;
    }
}
