/* Calculator Styles */
.sdlt-calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

.sdlt-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0
}

.sdlt-intro h1 {
    margin: 0 0 20px 0;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1)
}

.sdlt-intro p {
    margin: 0 0 15px 0;
    font-size: 1.05em;
    line-height: 1.7;
    opacity: 0.95
}

.sdlt-intro .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-left: 5px;
    font-weight: 600
}

.sdlt-calculator {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden
}

.calculator-body {
    padding: 30px;
    background: #f8f9fa
}

.input-group {
    margin-bottom: 25px
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95em
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 400px
}

.price-input-symbol {
    background: #667eea;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px 0 0 8px
}

.price-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.15em;
    border: 2px solid #dee2e6;
    border-left: none;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    font-weight: 500
}

.price-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1)
}

.price-input::placeholder {
    color: #adb5bd
}

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px
}

.checkbox-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative
}

.checkbox-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2)
}

.checkbox-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05))
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer
}

.checkbox-card .checkbox-visual {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    transition: all 0.3s ease
}

.checkbox-card.active .checkbox-visual {
    background: #667eea;
    border-color: #667eea
}

.checkbox-card.active .checkbox-visual::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold
}

.checkbox-card .checkbox-label {
    display: inline-block;
    vertical-align: middle
}

.checkbox-card .checkbox-title {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 3px
}

.checkbox-card .checkbox-desc {
    font-size: 0.85em;
    color: #6c757d;
    display: block
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s
}

.calculate-btn:hover::before {
    width: 300px;
    height: 300px
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4)
}

.results-section {
    display: none;
    padding: 30px;
    background: white;
    border-top: 2px solid #e9ecef
}

.results-section.show {
    display: block;
    animation: slideDown 0.5s ease
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.results-header {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px
}

.results-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em
}

.total-tax {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10px 0
}

.effective-rate {
    font-size: 1.1em;
    opacity: 0.9
}

.tax-breakdown {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px
}

.tax-breakdown h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px
}

.breakdown-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden
}

.breakdown-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white
}

.breakdown-table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.breakdown-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background 0.2s ease
}

.breakdown-table tbody tr:hover {
    background: #f8f9fa
}

.breakdown-table tbody tr:last-child {
    border-bottom: none
}

.breakdown-table td {
    padding: 12px 14px;
    font-size: 0.95em
}

.breakdown-table .active-band {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600
}

.breakdown-table .surcharge-row {
    background: rgba(255, 193, 7, 0.1)
}

.breakdown-table .total-row {
    background: #f8f9fa;
    font-weight: 700;
    border-top: 2px solid #667eea
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px
}

.summary-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    text-align: center
}

.summary-card .card-label {
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.summary-card .card-value {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 700
}

.rate-reference {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px
}

.rate-reference h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1em
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px
}

.rate-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px
}

.rate-card h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 0.95em
}

.rate-card .rate-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #dee2e6;
    font-size: 0.85em
}

.rate-card .rate-item:last-child {
    border-bottom: none
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0
}

.disclaimer h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 1.1em
}

.disclaimer p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.6
}

.disclaimer p:last-child {
    margin-bottom: 0;
    font-weight: 600
}

.error-message {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
    display: none
}

.error-message.show {
    display: block;
    animation: shake 0.5s
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-5px)
    }

    75% {
        transform: translateX(5px)
    }
}

@media (max-width:768px) {
    .sdlt-intro {
        padding: 20px
    }

    .sdlt-intro h1 {
        font-size: 1.5em
    }

    .calculator-body {
        padding: 20px
    }

    .checkbox-options {
        grid-template-columns: 1fr
    }

    .summary-cards {
        grid-template-columns: 1fr
    }

    .rate-grid {
        grid-template-columns: 1fr
    }

    .total-tax {
        font-size: 2em
    }

    .breakdown-table {
        font-size: 0.85em
    }

    .breakdown-table th,
    .breakdown-table td {
        padding: 10px
    }
}

.loading {
    display: none;
    text-align: center;
    padding: 20px
}

.loading.show {
    display: block
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    margin-left: 5px;
    cursor: help
}

.sdlt-seo-content {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 25px;
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08)
}

.sdlt-seo-content h2 {
    color: #2c3e50;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee
}

.sdlt-seo-content h3 {
    color: #3498db;
    margin: 20px 0 12px
}

.sdlt-seo-content ul {
    padding-left: 25px;
    margin: 15px 0
}

.sdlt-seo-content li {
    margin-bottom: 8px;
    padding-left: 5px
}

.sdlt-seo-content strong {
    color: #e74c3c
}

.sdlt-seo-content a {
    color: #3498db;
    text-decoration: none
}

.sdlt-seo-content a:hover {
    text-decoration: underline
}

@media (max-width:768px) {
    .sdlt-seo-content {
        padding: 20px 15px;
        margin-top: 20px
    }
}

/* Toggle Switch */
.switch input:checked+.slider {
    background-color: #667eea;
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}