/* ===================== RESET WORDPRESS/THEME CONFLICTS ===================== */
.dc30calc-container {
    all: initial;
    display: block;
}

/* WordPress Theme Compatibility - Reset and Isolation */
.dc30calc-container * {
    box-sizing: border-box !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: normal !important;
}

.dc30calc-container p,
.dc30calc-container span,
.dc30calc-container div,
.dc30calc-container li,
.dc30calc-container label,
.dc30calc-container textarea {
    font-weight: normal !important;
}

.dc30calc-container strong,
.dc30calc-container b {
    font-weight: 700 !important;
}

.dc30calc-container h2,
.dc30calc-container h3,
.dc30calc-container h4,
.dc30calc-container h5,
.dc30calc-container h6 {
    font-weight: 600 !important;
}

.dc30calc-container input:not([type="checkbox"]),
.dc30calc-container select,
.dc30calc-container button,
.dc30calc-container textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    border-radius: 12px !important;
}

.dc30calc-container button {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ===================== MAIN CONTAINER ===================== */
.dc30calc-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0px !important;
    font-family: 'Poppins', Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.dc30calc-container *,
.dc30calc-container *::before,
.dc30calc-container *::after {
    box-sizing: border-box;
}

/* ===================== HEADER ===================== */
.dc30calc-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;
}

.dc30calc-card-header:hover {
    transform: translateY(-2px);
}

.dc30calc-card-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.dc30calc-card-header p {
    font-size: 14px;
    color: #555;
    margin: 0 auto;
}

/* ===================== CARD ===================== */
.dc30calc-card {
    background: #fff;
    padding: 0px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ===================== INFO BOX ===================== */
.dc30calc-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dc30calc-info-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: normal !important;
}

.dc30calc-info-box p:last-child {
    margin-bottom: 0;
}

.dc30calc-info-box strong {
    font-weight: 700 !important;
}

/* ===================== WARNING BOX ===================== */
.dc30calc-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.dc30calc-warning-box p {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
    font-weight: normal !important;
}

.dc30calc-warning-box strong {
    color: #d39e00;
    font-weight: 700 !important;
}

/* ===================== INPUT SECTION ===================== */
.dc30calc-input-section {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.dc30calc-section-heading {
    margin-bottom: 16px;
}

.dc30calc-section-heading h4 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 18px;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 8px;
}

.dc30calc-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dc30calc-input-group {
    flex: 1;
    min-width: 200px;
}

.dc30calc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600 !important;
    font-size: 14px;
    color: #1976d2;
}

.dc30calc-input-group input,
.dc30calc-input-group select,
.dc30calc-input-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #90caf9;
    border-radius: 12px;
    font-size: 15px;
    transition: .3s;
    background: #fff;
    font-weight: normal !important;
}

.dc30calc-input-group input:focus,
.dc30calc-input-group select:focus,
.dc30calc-input-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.dc30calc-input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===================== CHECKBOX ===================== */
.dc30calc-checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.dc30calc-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    cursor: pointer;
}

.dc30calc-checkbox-option:hover {
    background-color: #e3f2fd;
    border-color: #90caf9;
}

.dc30calc-checkbox-option input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer !important;
    accent-color: #1976d2 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #1976d2 !important;
    border-radius: 4px !important;
}

.dc30calc-checkbox-option label {
    cursor: pointer !important;
    font-size: 14px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #333 !important;
    user-select: none !important;
    flex: 1 !important;
}

/* ===================== BUTTONS ===================== */
.dc30calc-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.dc30calc-calculate-btn,
.dc30calc-reset-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700 !important;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.dc30calc-calculate-btn {
    background: #1976d2;
    color: #fff;
}

.dc30calc-calculate-btn:hover {
    background: #125ea8;
    transform: translateY(-2px);
}

.dc30calc-reset-btn {
    background: #f44336;
    color: #fff;
}

.dc30calc-reset-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* ===================== QUICK PRESET BUTTONS ===================== */
.dc30calc-quick-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333 !important;
    border: none;
    border-radius: 12px;
    padding: 16px 12px;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    font-family: 'Poppins', Arial, sans-serif !important;
    gap: 8px;
}

.dc30calc-quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dc30calc-quick-btn:active {
    transform: translateY(-1px);
}

.dc30calc-quick-btn span {
    color: inherit !important;
}

/* ===================== RESULT CONTAINER ===================== */
.dc30calc-result-container {
    margin-top: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dc30calc-result-container.dc30calc-hidden {
    display: none;
}

.dc30calc-result-container h3 {
    font-size: 22px;
    color: #1976d2;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
}

/* ===================== RESULTS GRID ===================== */
.dc30calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dc30calc-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);
}

.dc30calc-result-card.dc30calc-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    transform: scale(1.05);
}

.dc30calc-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dc30calc-result-title {
    font-size: 13px;
    font-weight: 600 !important;
    margin-bottom: 8px;
    opacity: 0.9;
}

.dc30calc-result-value {
    font-size: 32px;
    font-weight: 700 !important;
    margin-bottom: 4px;
}

.dc30calc-result-unit {
    font-size: 14px;
    font-weight: 500 !important;
    opacity: 0.8;
}

/* ===================== EDUCATIONAL INFO ===================== */
.dc30calc-educational-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.dc30calc-educational-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.dc30calc-educational-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #1b5e20;
    line-height: 1.8;
    font-weight: normal !important;
}

.dc30calc-educational-info strong {
    font-weight: 700 !important;
}

/* ===================== CALCULATION STEPS ===================== */
.dc30calc-calculation-steps {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.dc30calc-calculation-steps h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #4a148c;
    font-weight: 600;
}

.dc30calc-steps-content {
    font-size: 13px;
    color: #6a1b9a;
    line-height: 1.8;
    font-weight: normal !important;
}

.dc30calc-steps-content p {
    margin: 8px 0;
    font-weight: normal !important;
}

.dc30calc-steps-content strong {
    color: #4a148c;
    font-weight: 700 !important;
}

/* ===================== HIDDEN ===================== */
.dc30calc-hidden {
    display: none !important;
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 600px) {
    .dc30calc-container {
        padding: 12px !important;
    }
    
    .dc30calc-input-row {
        flex-direction: column;
    }
    
    .dc30calc-input-group {
        min-width: 100%;
    }
    
    .dc30calc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .dc30calc-btn-group {
        flex-direction: column;
    }
    
    .dc30calc-card-header h2 {
        font-size: 20px;
    }
    
    .dc30calc-checkbox-options {
        grid-template-columns: 1fr;
    }
}