:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #ecf0f1;
    --card-color: #ffffff;
    --text-color: #2c3e50;
    --success-color: #27ae60;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card {
    background: var(--card-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.progress-container {
    background-color: #f1f1f1;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

#progress-bar {
    background: linear-gradient(90deg, var(--success-color), var(--secondary-color));
    height: 30px;
    width: 0;
    transition: width 1s ease-in-out;
    position: relative;
}

#progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    line-height: 30px;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.timeline-item {
    text-align: center;
    flex: 1;
}

.timeline-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.paid-so-far {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.paid-details {
    text-align: center;
}

.paid-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.paid-item p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.paid-breakdown {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 5px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.breakdown-item span:first-child {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        gap: 1rem;
    }
}
