:root {
    --bg-primary: hsl(248, 50%, 98%);
    --bg-secondary: hsl(0, 0%, 100%);
    --text-primary: hsl(222, 84%, 4.9%);
    --text-secondary: hsl(215, 16.3%, 46.9%);
    --text-muted: hsl(215.4, 16.3%, 46.9%);
    --color-agricultural: hsl(142, 76%, 36%);
    --color-agricultural-light: hsl(142, 40%, 55%);
    --color-agricultural-fg: hsl(0, 0%, 98%);
    --color-success: hsl(142, 91%, 46%);
    --color-warning: hsl(45, 93%, 47%);
    --color-error: hsl(0, 84%, 60%);
    --color-info: hsl(217, 91%, 60%);
    --color-accent: hsl(142, 40%, 92%);
    --color-accent-fg: hsl(142, 76%, 36%);
    --color-muted: hsl(210, 40%, 96.1%);
    --color-border: hsl(214.3, 31.8%, 91.4%);
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-elegant: 0 10px 30px -10px hsla(142, 76%, 36%, 0.1);
    --shadow-soft: 0 4px 20px -2px hsla(220, 20%, 80%, 0.3);
    --gradient-agricultural: linear-gradient(135deg, hsl(142, 76%, 36%), hsl(142, 40%, 55%));
    --gradient-hero: linear-gradient(135deg, hsl(248, 50%, 98%), hsl(220, 40%, 95%));
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(220, 20%, 98%));
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.tire-calculator-container {
    line-height: 1.6;
    color: var(--text-primary);
}
.hero-section {
    position: relative;
    height: 300px;
    background: var(--color-agricultural);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    top: -40px;
    background: url('/wp-content/uploads/tire-calculator.png') center / cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, hsl(142deg 100% 26.38%), hsl(142deg 75.09% 30.58%));
    opacity: 0.9;
}
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-agricultural-fg);
    padding: var(--spacing-xl);
}
.calc-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 30px;
}
.calc-text p {
    margin-bottom: 0.5em;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.calculator-content {
    max-width: 1200px;
}
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
@media (min-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}
.tire-card, .result-card, .info-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    overflow: hidden;
}
.card-header {
    padding: 20px 20px 0 20px;
}
.card-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 10px;
}
.card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.card-content {
    padding: 0px 20px 20px 20px;
}
.icon {
    width: 1rem;
    height: 1rem;
}
.tire-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.input-label-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.input-label {
    font-weight: 600;
    font-size: 0.875rem;
}
.help-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}
.help-button:hover {
    color: var(--text-primary);
    background: var(--color-muted);
}
.input-container {
    position: relative;
}
.tire-input {
    width: 100%;
    padding: var(--spacing-md);
    padding-right: 2.5rem;
    border: 2px solid var(--color-border);
    border-radius: 15px !important;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}
.tire-input:focus {
    outline: none;
    border-color: var(--color-agricultural);
    box-shadow: 0 0 0 3px hsla(142, 76%, 36%, 0.1);
}
.tire-input.valid {
    border-color: var(--color-success);
}
.tire-input.invalid {
    border-color: var(--color-error);
}
.input-status {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}
.status-valid {
    color: var(--color-success);
}
.status-invalid {
    color: var(--color-error);
}
.tire-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.info-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-secondary {
    background: var(--color-muted);
    color: var(--text-primary);
}
.badge-warning {
    background: hsl(45, 93%, 90%);
    color: hsl(45, 93%, 30%);
    border: 1px solid hsl(45, 93%, 70%);
}
.badge-error {
    background: hsl(0, 84%, 90%);
    color: hsl(0, 84%, 40%);
    border: 1px solid hsl(0, 84%, 70%);
}
.tire-specs {
    background: hsla(142, 40%, 92%, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
}
.tire-specs.hidden {
    display: none;
}
.specs-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}
.specs-value {
    font-size: 0.875rem;
    font-family: monospace;
    font-weight: 600;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: 20px;
}
.btn-primary {
    background: var(--gradient-agricultural);
    color: var(--color-agricultural-fg);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-elegant);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    background: #e2f3e8;
    color: #16a249;
}
.results-section {
    margin-bottom: var(--spacing-2xl);
}
.results-section.hidden {
    display: none;
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}
@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.tire-format {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}
.format-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-muted);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}
.spec-item {
    background: hsla(142, 40%, 92%, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.spec-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}
.spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.difference-item {
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid;
}
        .tire-calc-result-item.speed-diff {
            background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
            border: 1px solid #90caf9;
        }
        .diff-subtitle {
            font-size: 0.75rem;
            color: #666;
            margin-top: 4px;
        }
        .difference-item.good {
    background: hsl(142, 50%, 95%);
    border-color: hsl(142, 50%, 80%);
}
.difference-item.acceptable {
    background: hsl(45, 90%, 95%);
    border-color: hsl(45, 90%, 80%);
}
.difference-item.warning {
    background: hsl(0, 80%, 95%);
    border-color: hsl(0, 80%, 80%);
}
.diff-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}
.diff-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.diff-percent {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.recommendation-icon {
    display: inline-flex;
    align-items: center;
}
.recommendation-badge {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}
.recommendation-badge.good {
    background: hsl(142, 50%, 95%);
    color: hsl(142, 76%, 25%);
    border: 1px solid hsl(142, 50%, 80%);
}
.recommendation-badge.acceptable {
    background: hsl(45, 90%, 95%);
    color: hsl(45, 93%, 25%);
    border: 1px solid hsl(45, 90%, 80%);
}
.recommendation-badge.warning {
    background: hsl(0, 80%, 95%);
    color: hsl(0, 84%, 25%);
    border: 1px solid hsl(0, 80%, 80%);
}
.info-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.format-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}
@media (min-width: 768px) {
    .format-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.format-item {
    text-align: center;
}
.format-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-muted);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}
.format-examples {
    margin-bottom: var(--spacing-md);
}
.format-example {
    font-family: monospace;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}
.format-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}
/* Interpretation Guide */
.interpretation-guide {
    margin-top: 20px;
    background: #f6f6fb;
}
.interpretation-guide p {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: #64748b;
    font-size:15px;
}
.interpretation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}
@media (min-width: 768px) {
    .interpretation-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.interpretation-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: #64748b;
}
.interpretation-item.good .icon {
    color: var(--color-success);
}
.interpretation-item.acceptable .icon {
    color: var(--color-warning);
}
.interpretation-item.warning .icon {
    color: var(--color-error);
}
.help-tooltip {
    position: absolute;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    max-width: 320px;
    font-size: 0.875rem;
}
.help-tooltip.hidden {
    display: none;
}
.tooltip-content h4 {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}
.tooltip-formats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.tooltip-format {
    line-height: 1.4;
}
.tooltip-format strong {
    font-family: monospace;
    color: var(--color-agricultural);
}
.hidden {
    display: none !important;
}
.text-center {
    text-align: center;
}
@media (max-width: 767px) {
    .hero-section {
    background-image: url('/wp-content/uploads/tire-calculator-mobile.png');
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}