/* ===================== RESET WORDPRESS/THEME CONFLICTS ===================== */
.inchcm2026calc-container {
    all: initial;
    display: block;
}

/* WordPress Theme Compatibility - Reset and Isolation */
.inchcm2026calc-container * {
    box-sizing: border-box !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: normal !important;
}

.inchcm2026calc-container p,
.inchcm2026calc-container span,
.inchcm2026calc-container div,
.inchcm2026calc-container li,
.inchcm2026calc-container label,
.inchcm2026calc-container input,
.inchcm2026calc-container select,
.inchcm2026calc-container textarea {
    font-weight: normal !important;
}

.inchcm2026calc-container strong,
.inchcm2026calc-container b {
    font-weight: 700 !important;
}

.inchcm2026calc-container h1,
.inchcm2026calc-container h2,
.inchcm2026calc-container h3,
.inchcm2026calc-container h4,
.inchcm2026calc-container h5,
.inchcm2026calc-container h6 {
    font-weight: 600 !important;
}

.inchcm2026calc-container input, 
.inchcm2026calc-container select, 
.inchcm2026calc-container button, 
.inchcm2026calc-container textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    border-radius: 12px !important;
}

.inchcm2026calc-container button {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ===================== MAIN CONTAINER ===================== */
.inchcm2026calc-container {
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0px !important;
    font-family: 'Poppins', Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
    overflow-x: hidden;
}

.inchcm2026calc-container *, 
.inchcm2026calc-container *::before, 
.inchcm2026calc-container *::after { 
    box-sizing: border-box; 
}

/* ===================== HEADER ===================== */
.inchcm2026calc-card-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform .3s;
}

.inchcm2026calc-card-header:hover {
    transform: translateY(-2px);
}

.inchcm2026calc-card-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.inchcm2026calc-card-header p {
    font-size: 14px;
    color: #555;
    margin: 0 auto;
}

/* ===================== CARD ===================== */
.inchcm2026calc-card {
    background: #fff;
    padding: 3px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===================== INFO BOX ===================== */
.inchcm2026calc-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.inchcm2026calc-info-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: normal !important;
}

.inchcm2026calc-info-box p:last-child {
    margin-bottom: 0;
}

.inchcm2026calc-info-box strong {
    font-weight: 700 !important;
}

/* ===================== WARNING BOX ===================== */
.inchcm2026calc-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.inchcm2026calc-warning-box p {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
    font-weight: normal !important;
}

.inchcm2026calc-warning-box strong {
    color: #d39e00;
    font-weight: 700 !important;
}

/* ===================== INPUT SECTION ===================== */
.inchcm2026calc-input-section {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
}

.inchcm2026calc-section-heading {
    margin-bottom: 16px;
}

.inchcm2026calc-section-heading h4 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 18px;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 8px;
}

.inchcm2026calc-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.inchcm2026calc-input-group {
    flex: 1;
    min-width: 200px;
}

.inchcm2026calc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600 !important;
    font-size: 14px;
    color: #1976d2;
}

.inchcm2026calc-input-group input, 
.inchcm2026calc-input-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #90caf9;
    border-radius: 12px;
    font-size: 15px;
    transition: .3s;
    background: #fff;
    font-weight: normal !important;
}

.inchcm2026calc-input-group input:focus, 
.inchcm2026calc-input-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
}

.inchcm2026calc-unit-input {
    display: flex;
    gap: 8px;
}

.inchcm2026calc-unit-input input {
    flex: 2;
}

.inchcm2026calc-unit-input select {
    flex: 1;
}

/* ===================== CHECKBOX ===================== */
.inchcm2026calc-checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inchcm2026calc-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
}

.inchcm2026calc-checkbox-option:hover {
    background-color: #e3f2fd;
    border-color: #90caf9;
}

.inchcm2026calc-checkbox-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #1976d2;
    border: 2px solid #1976d2;
    border-radius: 4px;
    flex-shrink: 0;
}

.inchcm2026calc-checkbox-option input[type="checkbox"]:checked {
    background-color: #1976d2;
}

.inchcm2026calc-checkbox-option label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    font-weight: 500 !important;
    color: #333;
    user-select: none;
    flex: 1;
}

/* ===================== ADVANCED OPTIONS ===================== */
.inchcm2026calc-advanced-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

.inchcm2026calc-advanced-options h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1976d2;
}

/* ===================== BUTTONS ===================== */
.inchcm2026calc-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.inchcm2026calc-calculate-btn,
.inchcm2026calc-reset-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700 !important;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.inchcm2026calc-calculate-btn {
    background: #1976d2;
    color: #fff;
}

.inchcm2026calc-calculate-btn:hover {
    background: #125ea8;
    transform: translateY(-2px);
}

.inchcm2026calc-reset-btn {
    background: #f44336;
    color: #fff;
}

.inchcm2026calc-reset-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* ===================== RESULT CONTAINER ===================== */
.inchcm2026calc-result-container {
    margin-top: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.inchcm2026calc-result-container.inchcm2026calc-hidden {
    display: none;
}

.inchcm2026calc-result-container h3 {
    font-size: 22px;
    color: #1976d2;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
}

/* ===================== RESULTS GRID ===================== */
.inchcm2026calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.inchcm2026calc-result-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.inchcm2026calc-result-card.inchcm2026calc-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    transform: scale(1.05);
}

.inchcm2026calc-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.inchcm2026calc-result-title {
    font-size: 13px;
    font-weight: 600 !important;
    margin-bottom: 8px;
    opacity: 0.9;
}

.inchcm2026calc-result-value {
    font-size: 32px;
    font-weight: 700 !important;
    margin-bottom: 4px;
}

.inchcm2026calc-result-unit {
    font-size: 14px;
    font-weight: 500 !important;
    opacity: 0.8;
}

/* ===================== BREAKDOWN SECTION ===================== */
.inchcm2026calc-breakdown-section {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.inchcm2026calc-breakdown-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #0d47a1;
    font-weight: 600;
}

.inchcm2026calc-breakdown-section p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1565c0;
    font-weight: 500 !important;
}

.inchcm2026calc-breakdown-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.inchcm2026calc-breakdown-section li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #0d47a1;
    position: relative;
    padding-left: 24px;
    font-weight: normal !important;
}

.inchcm2026calc-breakdown-section li:before {
    content: "📏";
    position: absolute;
    left: 0;
}

/* ===================== CALCULATION STEPS ===================== */
.inchcm2026calc-calculation-steps {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.inchcm2026calc-calculation-steps h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #4a148c;
    font-weight: 600;
}

.inchcm2026calc-steps-content {
    font-size: 13px;
    color: #6a1b9a;
    line-height: 1.8;
    font-weight: normal !important;
}

.inchcm2026calc-steps-content p {
    margin: 8px 0;
    font-weight: normal !important;
}

.inchcm2026calc-steps-content strong {
    color: #4a148c;
    font-weight: 700 !important;
}

.inchcm2026calc-steps-content em {
    font-style: italic;
    font-weight: normal !important;
}

/* ===================== EDUCATIONAL INFO ===================== */
.inchcm2026calc-educational-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.inchcm2026calc-educational-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.inchcm2026calc-educational-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #1b5e20;
    line-height: 1.8;
    font-weight: normal !important;
}

.inchcm2026calc-educational-info strong {
    font-weight: 700 !important;
}

/* ===================== COMPARISON TABLE ===================== */
.inchcm2026calc-comparison-table {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.inchcm2026calc-comparison-table h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #f57c00;
    font-weight: 600;
}

.inchcm2026calc-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.inchcm2026calc-comparison-table th,
.inchcm2026calc-comparison-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ffe082;
    font-size: 13px;
}

.inchcm2026calc-comparison-table th {
    background: #ffecb3;
    color: #e65100;
    font-weight: 600 !important;
}

.inchcm2026calc-comparison-table td {
    color: #e65100;
    font-weight: normal !important;
}

/* ===================== QUICK CONVERTER (MUI STYLE) ===================== */
.inchcm2026calc-quick-converter {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.inchcm2026calc-quick-header {
    text-align: center;
    margin-bottom: 24px;
}

.inchcm2026calc-quick-header h3 {
    font-size: 20px;
    color: #1976d2;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.inchcm2026calc-quick-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: normal !important;
}

.inchcm2026calc-dual-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.inchcm2026calc-converter-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    max-width: 100%;
    overflow-x: hidden;
}

.inchcm2026calc-converter-block:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.inchcm2026calc-block-label {
    margin-bottom: 12px;
}

.inchcm2026calc-block-label label {
    font-size: 14px;
    font-weight: 600 !important;
    color: #1976d2;
    display: block;
}

.inchcm2026calc-block-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inchcm2026calc-block-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #90caf9;
    border-radius: 12px;
    padding: 8px 12px;
    transition: all 0.3s;
    max-width: 100%;
    overflow: hidden;
}

.inchcm2026calc-block-input-container:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.inchcm2026calc-block-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 600 !important;
    color: #333;
    background: transparent;
    padding: 8px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.inchcm2026calc-block-input::placeholder {
    color: #bbb;
    font-weight: 400 !important;
}

.inchcm2026calc-unit-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.inchcm2026calc-unit-selector:hover {
    background: #e3f2fd;
}

.inchcm2026calc-unit-label {
    font-size: 14px;
    font-weight: 600 !important;
    color: #1976d2;
    pointer-events: none;
}

.inchcm2026calc-unit-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
}

.inchcm2026calc-unit-arrow {
    width: 12px;
    height: 12px;
    color: #1976d2;
    pointer-events: none;
}

.inchcm2026calc-block-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inchcm2026calc-action-hint {
    flex: 1;
}

.inchcm2026calc-action-hint p {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: normal !important;
}

.inchcm2026calc-equals-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    flex-shrink: 0;
}

.inchcm2026calc-equals-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.inchcm2026calc-equals-btn:active {
    transform: scale(0.95);
}

.inchcm2026calc-equals-btn svg {
    width: 20px;
    height: 20px;
}

/* ===================== HIDDEN ===================== */
.inchcm2026calc-hidden {
    display: none !important;
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 768px) {
    .inchcm2026calc-container {
        padding: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .inchcm2026calc-quick-converter {
        padding: 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .inchcm2026calc-dual-inputs {
        gap: 16px;
        max-width: 100%;
    }
    
    .inchcm2026calc-converter-block {
        padding: 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .inchcm2026calc-block-input-container {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow: hidden;
    }
    
    .inchcm2026calc-block-input {
        font-size: 18px;
        min-width: 0;
        flex: 1;
        width: auto;
        max-width: 100%;
    }
    
    .inchcm2026calc-unit-selector {
        flex-shrink: 0;
        padding: 6px 10px;
        min-width: 60px;
        max-width: 80px;
    }
    
    .inchcm2026calc-unit-label {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .inchcm2026calc-block-action {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .inchcm2026calc-action-hint {
        flex: 1;
        min-width: 0;
    }
    
    .inchcm2026calc-equals-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .inchcm2026calc-input-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .inchcm2026calc-input-group {
        min-width: 100%;
    }
    
    .inchcm2026calc-input-group input, 
    .inchcm2026calc-input-group select {
        font-size: 16px !important;
        padding: 14px 16px;
        height: auto !important;
    }
    
    .inchcm2026calc-unit-input {
        display: flex;
        gap: 8px;
    }
    
    .inchcm2026calc-unit-input input {
        width: 65% !important;
        flex: 2;
    }
    
    .inchcm2026calc-unit-input select {
        width: 35% !important;
        flex: 1;
    }
    
    .inchcm2026calc-results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .inchcm2026calc-btn-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .inchcm2026calc-calculate-btn,
    .inchcm2026calc-reset-btn {
        padding: 16px;
        font-size: 18px;
    }
    
    .inchcm2026calc-card-header h2 {
        font-size: 22px;
    }
    
    .inchcm2026calc-result-value {
        font-size: 28px;
    }
    
    .inchcm2026calc-comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .inchcm2026calc-checkbox-option {
        padding: 14px;
    }
}