/* Auto Repair Calculator – polished front-end styles, BlogHash-friendly */

.arc-wrap {
    max-width: 920px;
    margin: 2.5rem auto;
    padding: 2.25rem 2rem;
    border-radius: var(--bloghash-radius, 2rem);
    background: var(--bloghash-white, #fff);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08);
    font-family: var(--bloghash-font-sans-serif, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.arc-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.arc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bloghash-secondary, #111827);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.arc-sub {
    margin: 0;
    color: rgba(15, 23, 42, 0.65);
    font-size: 1rem;
    line-height: 1.5;
}

.arc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
}

.arc-card {
    padding: 1.5rem 1.6rem;
    border-radius: var(--bloghash-normal-radius, 0.8rem);
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.arc-card:nth-child(2) {
    background: linear-gradient(165deg, #0f172a 0%, #020617 100%);
    color: #e5e7eb;
    border-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.arc-card:nth-child(2) .arc-big,
.arc-card:nth-child(2) .arc-mini {
    color: #f1f5f9;
}

.arc-card:nth-child(2) .arc-note {
    color: #94a3b8;
}

.arc-card:nth-child(2) .arc-table,
.arc-card:nth-child(2) .arc-table tr,
.arc-card:nth-child(2) .arc-table td {
    background-color: transparent !important;
    color: #e5e7eb !important;
    opacity: 1 !important;
    border-bottom-color: rgba(148, 163, 184, 0.25) !important;
}

.arc-card .arc-note {
    margin-top: 0.75rem;
}

/* Tabs */
.arc-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.arc-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    border-radius: var(--bloghash-normal-radius, 0.8rem) var(--bloghash-normal-radius, 0.8rem) 0 0;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.arc-tab:hover {
    color: var(--bloghash-secondary, #111827);
    background: rgba(15, 23, 42, 0.04);
}

.arc-tab.active {
    color: var(--bloghash-primary, #F43676);
    border-bottom-color: var(--bloghash-primary, #F43676);
    background: rgba(244, 54, 118, 0.06);
}

.arc-tab-panel {
    display: none;
}

.arc-tab-panel.active {
    display: block;
}

.arc-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-end;
}

.arc-row + .arc-row {
    margin-top: 1rem;
}

.arc-row > * {
    flex: 1;
    min-width: 0;
}

.arc-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
    margin: 0 0 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.arc-field select,
.arc-field input[type="number"] {
    width: 100%;
    border-radius: var(--bloghash-normal-radius, 0.8rem);
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arc-field select:hover,
.arc-field input[type="number"]:hover {
    border-color: rgba(148, 163, 184, 0.7);
}

.arc-field select:focus,
.arc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--bloghash-primary, #F43676);
    box-shadow: 0 0 0 3px rgba(244, 54, 118, 0.15);
}

.arc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.arc-actions .arc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: var(--bloghash-full-radius, 999px);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--bloghash-transition-primary, all 0.25s ease);
}

.arc-actions .arc-btn-primary {
    background: var(--bloghash-primary, #F43676);
    color: var(--bloghash-white, #fff);
    box-shadow: 0 4px 14px rgba(244, 54, 118, 0.35);
}

.arc-actions .arc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(244, 54, 118, 0.45);
}

.arc-actions .arc-btn-secondary {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.arc-actions .arc-btn-secondary:hover {
    background: #020617;
}

.arc-results {
    margin-top: 0.5rem;
}

.arc-big {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    color: inherit;
}

.arc-mini {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.45;
}

.arc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.arc-table tr:first-child td {
    padding-top: 0;
}

.arc-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    vertical-align: middle;
}

.arc-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.arc-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.arc-table tr:last-child td:first-child {
    font-weight: 600;
}

.arc-disclaimer {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: inherit;
    opacity: 0.9;
}

.arc-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.875rem;
    line-height: 1.5;
    color: inherit;
}

.arc-cta-wrap {
    margin-top: 1rem;
    margin-bottom: 0;
}

.arc-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: var(--bloghash-full-radius, 999px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--bloghash-primary, #F43676);
    color: var(--bloghash-white, #fff);
    border: none;
    transition: var(--bloghash-transition-primary, all 0.25s ease);
    box-shadow: 0 4px 14px rgba(244, 54, 118, 0.35);
}

.arc-btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(244, 54, 118, 0.45);
    color: #fff;
}

.arc-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(100, 116, 139, 0.9);
}

/* Mobile: polished layout and touch targets */
@media (max-width: 720px) {
    .arc-wrap {
        margin: 1.5rem auto;
        padding: 1.5rem 1.25rem;
        border-radius: 1.25rem;
    }

    .arc-header {
        margin-bottom: 1.35rem;
        padding-bottom: 1.25rem;
    }

    .arc-title {
        font-size: 1.45rem;
    }

    .arc-sub {
        font-size: 0.95rem;
    }

    .arc-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .arc-card {
        padding: 1.35rem 1.25rem;
    }

    .arc-row {
        flex-direction: column;
        gap: 0;
    }

    .arc-row > * {
        width: 100%;
    }

    .arc-row + .arc-row {
        margin-top: 1.1rem;
    }

    .arc-field select,
    .arc-field input[type="number"] {
        padding: 0.75rem 0.9rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .arc-actions {
        margin-top: 1.1rem;
        gap: 0.65rem;
    }

    .arc-actions .arc-btn {
        padding: 0.75rem 1.35rem;
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }

    .arc-big {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .arc-wrap {
        padding: 1.25rem 1rem;
    }

    .arc-title {
        font-size: 1.3rem;
    }
}
