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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

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

.header {
    background: linear-gradient(135deg, #579950 0%, #3e6d38 100%);
    color: white;
    padding: 64px 0;
    text-align: center;
    margin-bottom: 64px;
    border-radius: 4px;
    animation: fadeIn 0.8s ease-in-out;
}

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

.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.header p {
    font-size: 20px;
    font-weight: 400;
}

.main-content {
    margin-bottom: 64px;
}

.section-title {
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #579950;
    border-radius: 4px;
}

.calculator-section, .results-section {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 32px;
    animation: slideUp 0.6s ease-in-out;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #579950;
    box-shadow: 0 0 0 2px rgba(87, 153, 80, 0.2);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.calculate-btn, .reset-btn, .print-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn {
    background-color: #579950;
    color: white;
}

.calculate-btn:hover {
    background-color: #3e6d38;
    transform: translateY(-2px);
}

.reset-btn {
    background-color: #e5e5e5;
    color: #000000;
}

.reset-btn:hover {
    background-color: #d0d0d0;
}

.print-btn {
    background-color: #579950;
    color: white;
    margin-top: 24px;
}

.print-btn:hover {
    background-color: #3e6d38;
    transform: translateY(-2px);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.result-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}

.result-card p {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.ax-voucher-section {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 32px;
}

.ax-voucher-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000;
}

.voucher-content {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.8;
}

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 32px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-link {
    color: #579950;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #3e6d38;
    text-decoration: underline;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .header, .footer, .form-actions, .print-btn {
        display: none;
    }
    
    .results-section {
        page-break-inside: avoid;
    }
    
    .result-card {
        break-inside: avoid;
    }
}