/* Vape Duty Calculator Styles */
.vdc-calculator-wrapper {
    width: 100%;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.vdc-calculator-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* Header Styles */
.vdc-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.vdc-title {
    color: #1a202c;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.vdc-subtitle {
    color: #718096;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.vdc-form {
    margin-bottom: 20px;
}

.vdc-input-group {
    margin-bottom: 20px;
}

.vdc-label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Slider Styles */
.vdc-slider-container {
    padding: 15px 0;
    border: none !important;
    background: transparent !important;
}

.vdc-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 4px !important;
    background: transparent !important;
    border-radius: 3px !important;
    outline: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    touch-action: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

.vdc-slider:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.vdc-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%) !important;
    border-radius: 3px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.vdc-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #667eea !important;
    cursor: pointer !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    margin-top: -7px !important;
}

.vdc-slider::-webkit-slider-thumb:hover {
    background: #5568d3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

.vdc-slider::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%) !important;
    border-radius: 3px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.vdc-slider::-moz-range-progress {
    height: 4px !important;
    background: transparent !important;
    border-radius: 3px !important;
}

.vdc-slider::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #667eea !important;
    cursor: pointer !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.vdc-slider::-moz-range-thumb:hover {
    background: #5568d3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

.vdc-slider::-ms-track {
    width: 100% !important;
    height: 4px !important;
    background: transparent !important;
    border: none !important;
    border-color: transparent !important;
    color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.vdc-slider::-ms-fill-lower,
.vdc-slider::-ms-fill-upper {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%) !important;
    border-radius: 3px !important;
    border: none !important;
}

.vdc-slider::-ms-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #667eea !important;
    cursor: pointer !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.vdc-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.vdc-slider-values small {
    display: block;
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
}

.vdc-slider-current {
    color: #667eea;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.vdc-slider-min,
.vdc-slider-max {
    text-align: center;
    max-width: 80px;
}

/* Input Styles - New Grid Approach */
.vdc-price-input-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
}

.vdc-pound-sign {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.vdc-price-input {
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    outline: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.vdc-price-input-container:focus-within {
    border-color: #667eea;
    background: #f7fafc;
}

.vdc-price-input::placeholder {
    color: #cbd5e0;
    font-weight: 400;
}

/* Remove number input arrows */
.vdc-price-input::-webkit-outer-spin-button,
.vdc-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vdc-price-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Old input wrapper styles - keep for backward compatibility but override */
.vdc-input-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 3px solid #e2e8f0;
    display: block;
    padding: 18px 20px;
}

.vdc-currency {
    display: none; /* Hide old currency symbol */
}

.vdc-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 600;
    color: #1a202c;
    outline: none;
    padding: 0;
}

.vdc-input-wrapper:focus-within {
    border-color: #667eea;
    background: #f7fafc;
}

.vdc-input::placeholder {
    color: #cbd5e0;
    font-weight: 400;
}

/* Remove number input arrows */
.vdc-input::-webkit-outer-spin-button,
.vdc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vdc-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Button Styles */
.vdc-calculate-btn {
    width: 100%;
    padding: 14px 25px;
    background: #FFD600; /* Vape Wiki brand yellow */
    color: #1a202c;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vdc-calculate-btn:hover {
    background: #ffdd33;
    color: #1a202c;
    transform: translateY(-1px);
}

.vdc-calculate-btn:active {
    transform: translateY(0);
}

.vdc-calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vdc-btn-loader {
    display: inline-block;
}

.vdc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 32, 44, 0.3);
    border-radius: 50%;
    border-top-color: #1a202c;
    animation: vdc-spin 0.8s linear infinite;
}

@keyframes vdc-spin {
    to { transform: rotate(360deg); }
}

/* Results Styles */
.vdc-results {
    margin-top: 25px;
    animation: vdc-slideIn 0.5s ease-out;
}

@keyframes vdc-slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vdc-results-title {
    color: #1a202c;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

/* Price Comparison */
.vdc-price-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px 20px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 2px solid #e2e8f0;
}

.vdc-price-item {
    text-align: center;
}

.vdc-price-label {
    font-size: 11px;
    color: #718096;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vdc-price-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.vdc-price-value.vdc-old {
    color: #4a5568;
    position: relative;
}

.vdc-price-value.vdc-old::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: #e53e3e;
    transform: translateY(-50%);
}

.vdc-price-value.vdc-new {
    color: #e53e3e;
}

.vdc-price-arrow {
    font-size: 26px;
    color: #667eea;
    font-weight: 700;
}

/* Impact Grid */
.vdc-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.vdc-impact-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.vdc-impact-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.vdc-impact-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.vdc-impact-highlight:hover {
    transform: translateY(-2px);
}

.vdc-impact-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vdc-impact-highlight .vdc-impact-label {
    opacity: 0.95;
}

.vdc-impact-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.vdc-impact-card:not(.vdc-impact-highlight) .vdc-impact-value {
    color: #2d3748;
}

.vdc-impact-highlight .vdc-impact-value {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Info Box */
.vdc-info-box {
    background: #eef2ff;
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #4c51bf;
    line-height: 1.6;
}

/* Footer */
.vdc-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f4f8;
}

.vdc-footer p {
    color: #a0aec0;
    font-size: 13px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vdc-calculator-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .vdc-title {
        font-size: 24px;
    }
    
    .vdc-subtitle {
        font-size: 14px;
    }
    
    .vdc-price-comparison {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .vdc-price-arrow {
        transform: rotate(90deg);
        order: 1;
    }
    
    .vdc-price-item:first-child {
        order: 0;
    }
    
    .vdc-price-item:last-child {
        order: 2;
    }
    
    .vdc-impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .vdc-impact-highlight {
        transform: scale(1);
        order: -1;
    }
    
    .vdc-impact-value {
        font-size: 32px;
    }
    
    .vdc-price-value {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .vdc-calculator-container {
        padding: 25px 15px;
    }
    
    .vdc-title {
        font-size: 20px;
    }
    
    .vdc-input-group {
        margin-bottom: 25px;
    }
    
    .vdc-calculate-btn {
        padding: 16px 25px;
        font-size: 16px;
    }
    
    /* Larger slider thumb for easier mobile touch */
    .vdc-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -10px;
    }
    
    .vdc-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    .vdc-slider-values {
        font-size: 11px;
    }
    
    .vdc-slider-values small {
        font-size: 9px;
    }
    
    .vdc-slider-current {
        font-size: 13px;
    }
    
    .vdc-slider-min,
    .vdc-slider-max {
        max-width: 60px;
    }
}

/* Print Styles */
@media print {
    .vdc-calculate-btn {
        display: none;
    }
    
    .vdc-results {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.vdc-slider:focus,
.vdc-input:focus,
.vdc-calculate-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Copy Protection Overlay */
.vdc-calculator-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}
