/* 메인 컨테이너 스타일 */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    text-align: center;
    margin: 30px 0 20px;
    color: #333;
    font-weight: 700;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    margin: 10px auto 0;
}

/* 입력 폼 섹션 */
.input-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
    border-color: #74ebd5;
    outline: none;
}

/* 라디오 버튼 스타일 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

/* 카운터 입력 스타일 */
.counter-input {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.counter-btn:hover {
    background: #e3e3e3;
}

.counter-btn.minus {
    border-radius: 5px 0 0 5px;
}

.counter-btn.plus {
    border-radius: 0 5px 5px 0;
}

.counter-display {
    width: 60px;
    height: 36px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-input input {
    width: 60px;
    height: 36px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    background: white;
    -moz-appearance: textfield; /* Firefox */
}

.counter-input input::-webkit-outer-spin-button,
.counter-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 계산 버튼 */
.calculate-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calculate-button:active {
    transform: translateY(0);
}

/* 결과 섹션 */
.result-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: block;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.result-label {
    color: #555;
}

.result-value {
    font-weight: 500;
    color: #333;
}

.total-result {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.total-result .result-item {
    border-bottom: none;
}

.total-result .result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d5cb9;
}

.salary-input-wrapper {
    position: relative;
}

.salary-input-wrapper input {
    padding-right: 70px;
}

.salary-input-wrapper::after {
    content: '원';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* 반응형 설정 */
@media (max-width: 992px) {
    .calculator-container {
        flex-direction: column;
    }
    
    .result-section {
        max-width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* 도움말 스타일 */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e9e9e9;
    color: #666;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover {
    background: #ddd;
    color: #333;
}

.tooltip-content {
    position: absolute;
    width: 300px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    left: 30px;
    top: -10px;
}

.tooltip-icon:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #3d5cb9;
}

/* FAQ 섹션 스타일 */
.faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.faq-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: #3d5cb9;
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

