* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.container {
    max-width: 900px;
    margin: 0 auto;
}


.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-section, .results-section {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.discount-type {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.type-option {
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-option:first-child {
    border-bottom: 1px solid #ddd;
}

.type-option.selected {
    background-color: #3b82f6;
    color: white;
}

.type-option:hover:not(.selected) {
    background-color: #f3f4f6;
}

.checkmark {
    margin-right: 8px;
}

.button-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

#calculateBtn {
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

#calculateBtn:hover:not(:disabled) {
    background-color: #2563eb;
}

#calculateBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#clearBtn {
    background-color: #6b7280;
    color: white;
}

#clearBtn:hover {
    background-color: #4b5563;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#copyResults {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #ddd;
    color: #666;
    transition: all 0.2s ease;
}

#copyResults:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

#copyResults svg {
    fill: currentColor;
}

.price-after-discount {
    background-color: #f0fdf4;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.price-after-discount.highlight {
    background-color: #dcfce7;
    transform: scale(1.02);
}

.price-after-discount h3 {
    color: #15803d;
    margin-bottom: 10px;
}

.final-price {
    font-size: 32px;
    color: #15803d;
    font-weight: bold;
}

.savings {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 4px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .calculator-section {
        grid-template-columns: 1fr;
    }
}