* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    background: transparent;
    padding-top: 60px;
}

.calculator-container {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    animation: slideUp 0.8s ease-out;
    transform-origin: center;
    position: relative;
}

@keyframes slideUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
    animation: titlePulse 2s infinite alternate;
}

@keyframes titlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.input-group {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease-out 0.6s both;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    animation: expand 0.5s ease-out;
    display: none;
    transform-origin: top;
}

@keyframes expand {
    0% { 
        opacity: 0; 
        transform: scaleY(0); 
    }
    100% { 
        opacity: 1; 
        transform: scaleY(1); 
    }
}

.result h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.total-cost {
    font-size: 28px;
    font-weight: 700;
    color: #27ae60;
    margin: 10px 0;
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.breakdown {
    text-align: left;
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.breakdown div {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.breakdown .total {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.floating-icon {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 500px) {
    .calculator-container {
        padding: 20px;
    }
    
    .floating-icon {
        top: -20px;
        right: -20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}