:root {
    --primary-color: #1a4b8c;
    --secondary-color: #2c6cb5;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #27ae60;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.top-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right {
    margin-left: auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero .highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero .note {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.2;
    white-space: nowrap;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin: 1rem;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Calculator Section */
.calculator {
    padding: 40px 0;
    background-color: white;
}

.calculator .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calculator-left {
    flex: 1;
}

.calculator-right {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.calculator-right::-webkit-scrollbar {
    width: 6px;
}

.calculator-right::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.calculator-right::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.calculator-right::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 스텝 스타일 */
.step {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step h3 {
    font-size: 1.2rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 옵션 버튼 */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: #1a237e;
    color: #1a237e;
}

.option-btn.selected {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* 속도 옵션 */
.speed-option {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speed-option:hover {
    border-color: #1a237e;
}

.speed-option.selected {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.speed-option h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.speed-option p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 선택된 항목 요약 */
.selected-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.selected-summary h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.selected-items {
    display: grid;
    gap: 12px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.selected-item:last-child {
    border-bottom: none;
}

.selected-item .label {
    color: #666;
    font-size: 0.9rem;
}

.selected-item .value {
    font-weight: 500;
    color: #1a237e;
}

/* 결과 섹션 */
.result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.result-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.result-item h4 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
}

.result-item .amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a237e;
    word-break: keep-all;
}

/* 고객 정보 입력 */
.customer-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.customer-info h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1a237e;
    outline: none;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0d47a1;
}

/* Footer */
footer {
    background: #1a237e;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.company-info {
    text-align: center;
    margin-bottom: 20px;
}

.company-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    text-align: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 25px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }

    .hero h2 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .hero .highlight {
        font-size: 1.4rem;
        margin: 0.6rem 0;
    }

    .hero .note {
        font-size: 0.75rem;
    }

    .calculator {
        padding: 20px 0;
    }

    .calculator .container {
        padding: 0 12px;
        gap: 20px;
    }

    .step {
        padding: 12px;
        margin-bottom: 15px;
    }

    .step h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .options {
        gap: 8px;
    }

    .option-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .speed-option {
        padding: 10px;
    }

    .speed-option h4 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .speed-option p {
        font-size: 0.8rem;
    }

    .selected-summary {
        padding: 15px;
        margin-bottom: 15px;
    }

    .selected-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .selected-items {
        gap: 8px;
    }

    .selected-item {
        padding: 6px 0;
    }

    .selected-item .label {
        font-size: 0.85rem;
    }

    .selected-item .value {
        font-size: 0.85rem;
    }

    .result {
        gap: 8px;
        margin-bottom: 15px;
    }

    .result-item {
        padding: 10px;
    }

    .result-item h4 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .result-item .amount {
        font-size: 1.1rem;
    }

    .customer-info {
        padding: 15px;
        margin-bottom: 15px;
    }

    .customer-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

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

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 10px;
        font-size: 0.95rem;
        margin-top: 10px;
    }

    footer {
        padding: 20px 0;
    }

    .company-info p {
        font-size: 0.8rem;
        margin: 3px 0;
    }

    .footer-links a {
        font-size: 0.8rem;
        margin: 0 8px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step, .result-item, .customer-info {
    animation: fadeIn 0.5s ease-out;
}

/* Selection Effect */
.option-btn:active,
.speed-option:active {
    transform: scale(0.98);
}

/* Loading State */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1a237e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 