* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.stripe-payment {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.payment-wrapper {
    text-align: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

stripe-buy-button {
    display: block;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .stripe-payment {
        padding: 15px 10px;
    }
}

.stripe-security {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-style: italic;
}

.appeal-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.appeal-notice h3 {
    color: #856404;
    margin-bottom: 8px;
}

.appeal-notice p {
    color: #856404;
    margin: 0;
}

.appeal-notice a {
    color: #856404;
    font-weight: bold;
    text-decoration: underline;
}

.rta-map {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.rta-map h3 {
    color: #1976d2;
    margin-bottom: 8px;
}

.rta-map p {
    margin: 5px 0;
}

.rta-map a {
    color: #1976d2;
    font-weight: bold;
    text-decoration: none;
}

.rta-map a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="range"] {
    padding: 0;
    height: 8px;
    border: none;
    background: #ddd;
    outline: none;
    margin-top: 10px;
}

.msrp-text-input {
    margin-top: 10px;
    width: 100%;
}

.msrp-text-input {
    margin-top: 10px;
    width: 100%;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-toggle-btn-inline {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.3s;
}

.help-toggle-btn-inline:hover {
    background: #e9ecef;
    border-color: #2c5aa0;
}

.kbb-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
}

.kbb-toggle-btn:hover {
    background: #e9ecef;
    border-color: #2c5aa0;
}

.msrp-help-content {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.msrp-help-content.hidden {
    display: none;
}

.kbb-lookup-fields {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.kbb-lookup-fields.hidden {
    display: none;
}

.kbb-lookup-fields select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.kbb-search-btn {
    width: 100%;
    padding: 10px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.kbb-search-btn:hover {
    background: #1a3a6b;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
    border: none;
}

#msrpValue {
    font-weight: bold;
    color: #2c5aa0;
}

.year-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.year-control input[type="number"] {
    flex: 1;
}

.year-control input[type="number"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.help-text a {
    color: #2c5aa0;
    text-decoration: underline;
}

.help-text a:hover {
    color: #1a3a6b;
}

input:focus, select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.result {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.calculation-details p {
    margin-bottom: 8px;
    font-size: 16px;
}

.result h2 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

@media (min-width: 768px) {
    .result h2 {
        font-size: 24px;
    }
}

.tax-amount {
    background: #4caf50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .tax-amount {
        font-size: 36px;
        padding: 15px;
    }
}

.refund-section {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.refund-section.hidden {
    display: none;
}

.refund-amount {
    color: #ff5722;
    font-size: 32px;
    font-weight: bold;
}

.refund-message {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.refund-note {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.email-refund-btn {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.email-refund-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

.phone-refund-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.phone-refund-section p {
    margin-bottom: 10px;
    color: #555;
}

.phone-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.phone-btn {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
}

.phone-btn:hover {
    background: #0056b3;
}

.formula-box {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.formula-box.hidden {
    display: none;
}

.info-icon {
    cursor: pointer;
    font-size: 18px;
    margin-left: 8px;
    transition: transform 0.2s;
    display: inline-block;
    color: #2c5aa0;
}

.info-icon:hover {
    transform: scale(1.05);
}

.info-text {
    font-size: 12px;
    font-style: italic;
    color: #2c5aa0;
    text-decoration: underline;
}

.reference-link {
    font-size: 11px;
    color: #666;
    margin-left: 5px;
    text-decoration: none;
    font-style: italic;
}

.reference-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.formula-title {
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.formula-detail {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.formula-reference {
    display: inline-block;
    margin-top: 10px;
    color: #2c5aa0;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.formula-reference:hover {
    text-decoration: underline;
}

.exempt-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.exempt-message h2 {
    color: #856404;
    margin-bottom: 10px;
}

.exempt-message p {
    color: #856404;
}

.hidden {
    display: none;
}

.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-top: 30px;
}

.appeal-info {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-top: 20px;
}

.info h3, .appeal-info h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.appeal-info h3 {
    color: #2e7d32;
}

.info ul, .appeal-info ul, .appeal-info ol {
    padding-left: 20px;
}

.info li, .appeal-info li {
    margin-bottom: 5px;
    color: #555;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
        line-height: 1.3;
    }
}
