/* Hero Section Typography */
.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* 신청 내역 스타일 */
.application-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.application-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

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

.app-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.app-company {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color);
}

.app-type {
    font-size: 14px;
    color: var(--text-light);
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
}

.app-status {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    margin-right: 20px;
}

.app-date {
    font-size: 14px;
    color: var(--text-light);
    min-width: 100px;
    text-align: right;
}

@media (max-width: 768px) {
    .application-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .app-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .app-status {
        margin-right: 0;
    }

    .app-date {
        text-align: left;
        min-width: auto;
    }
}

/* 계산 결과 표시 스타일 */
.calculation-result {
    background: #f0f7ff;
    border: 2px solid #4da6ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.calculation-result.show {
    display: block;
}

.calculation-result h3 {
    color: #4da6ff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.estimate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.estimate-table thead {
    background: #4da6ff;
    color: white;
}

.estimate-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
}

.estimate-table th:last-child {
    text-align: right;
}

.estimate-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.estimate-table tbody tr:last-child td {
    border-bottom: none;
}

.estimate-table tbody tr:hover {
    background: #f8f9fa;
}

.estimate-table .item-name {
    font-weight: 600;
    color: #333;
}

.estimate-table .item-value {
    text-align: right;
    color: #4da6ff;
    font-weight: 600;
}

.estimate-table .item-detail {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.estimate-table .total-row {
    background: #e8f4ff;
    font-weight: 700;
}

.estimate-table .total-row td {
    padding: 15px 12px;
    font-size: 16px;
    color: #333;
}

.estimate-table .daily-row {
    background: #fff3f3;
    font-weight: 700;
}

.estimate-table .daily-row td {
    padding: 15px 12px;
    font-size: 18px;
    color: #d00000;
}

.estimate-table .text-right {
    text-align: right;
}

.estimate-table .text-center {
    text-align: center;
}

/* AI 답변 섹션 스타일 */
#ai_response_section {
    margin-top: 30px;
}

#ai_response_section h4 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

#ai_response_content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4da6ff;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
    min-height: 100px;
}

#ai_response_content div {
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .estimate-table {
        font-size: 12px;
    }

    .estimate-table th,
    .estimate-table td {
        padding: 8px 6px;
    }

    .estimate-table th:first-child,
    .estimate-table td:first-child {
        max-width: 120px;
    }
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
}

.box-dimensions {
    display: none;
    margin-top: 10px;
}

.box-dimensions.show {
    display: flex;
    gap: 10px;
}

.box-dimensions input {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .box-dimensions {
        flex-direction: column;
    }
}

/* 폼 그룹 스타일 */
.form-section-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-section-group h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4da6ff;
}

.form-section-group:last-of-type {
    margin-bottom: 0;
}

/* 모달 오버레이 스타일 */
.diagnosis-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    overflow-y: auto;
}

.diagnosis-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.diagnosis-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* 단계별 페이지 스타일 */
.step-page {
    display: none;
}

.step-page.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 16px;
    color: #666;
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-progress-number.active {
    background: #4da6ff;
    color: white;
}

.step-progress-number.completed {
    background: #28a745;
    color: white;
}

.step-progress-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.step-progress-number.active + .step-progress-label,
.step-progress-number.completed + .step-progress-label {
    color: #4da6ff;
}

.step-progress-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.step-progress-line.completed {
    background: #28a745;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn-step {
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-step-prev {
    background: #f0f0f0;
    color: #666;
}

.btn-step-prev:hover {
    background: #e0e0e0;
}

.btn-step-next {
    background: linear-gradient(135deg, var(--accent-color), #d00000);
    color: white;
}

.btn-step-next:hover {
    opacity: 0.9;
}

.btn-step-submit {
    background: linear-gradient(135deg, var(--accent-color), #d00000);
    color: white;
    flex: 1;
}

.btn-step-submit:hover {
    opacity: 0.9;
}

/* AI 진단하기 버튼 스타일 */
.ai-diagnose-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.ai-diagnose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.ai-diagnose-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .diagnosis-modal {
        padding: 20px;
        margin: 20px;
    }

    .step-progress {
        flex-direction: column;
        gap: 10px;
    }

    .step-progress-line {
        width: 2px;
        height: 30px;
    }

    .step-navigation {
        flex-direction: column;
    }

    .btn-step {
        width: 100%;
    }
}

