@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-5Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-6SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-7Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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

body {
    font-family: 'Paperlogy', 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 800px;
    margin: 0 auto;
    padding: 0;
}

.content-wrapper {
    background: #fff;
    padding: 0;
}

.images-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.image-item {
    width: 100%;
    margin: 0;
    padding: 0;
}

.image-item img {
    width: 800px;
    height: auto;
    display: block;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.clickable-image {
    cursor: pointer;
}

.clickable-image:hover img {
    opacity: 0.9;
}

/* 상담 폼 스타일 */
.consultation-form {
    width: 800px;
    background: #fff;
    padding: 50px 40px;
    margin: 0;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

#consultationForm {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Paperlogy', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* 휴대폰 입력 그룹 */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-select {
    padding: 14px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Paperlogy', sans-serif;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 80px;
}

.phone-select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.phone-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Paperlogy', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.phone-separator {
    color: #666;
    font-weight: 500;
    font-size: 18px;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.radio-label input[type="radio"]:checked ~ span,
.radio-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.radio-label span {
    transition: all 0.3s ease;
}

/* 개인정보 동의 */
.privacy-group {
    margin-bottom: 30px;
}

.privacy-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.privacy-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}

.privacy-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #764ba2;
}

/* 신청하기 버튼 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Paperlogy', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: -0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
}

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

.modal-body {
    padding: 30px;
}

.modal-body > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.privacy-section p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.8;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
}

.privacy-section ul li {
    font-size: 15px;
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.8;
}

.privacy-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.modal-confirm-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Paperlogy', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: -0.3px;
}

.modal-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-confirm-btn:active {
    transform: translateY(0);
}

/* 플로팅 버튼 */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.floating-btn:active {
    transform: translateY(-1px);
}

.top-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: #fff;
    color: #080e66;
    box-shadow: 0 4px 15px rgba(8, 14, 102, 0.3);
}

.top-btn:hover {
    box-shadow: 0 6px 20px rgba(8, 14, 102, 0.4);
}

/* 모바일 하단 고정 배너 */
.mobile-bottom-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #080e66;
    padding: 15px 20px;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-consult-btn {
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #080e66;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Paperlogy', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.3px;
}

.mobile-consult-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.mobile-consult-btn span {
    display: inline-block;
}

@media (max-width: 820px) {
    .container {
        width: 100%;
    }
    
    .image-item img {
        width: 100%;
    }
    
    .consultation-form {
        width: 100%;
        padding: 30px 20px;
    }
    
    #consultationForm {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .phone-input-group {
        flex-wrap: wrap;
    }
    
    .phone-select {
        flex: 0 0 100%;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-label {
        width: 100%;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .floating-buttons {
        right: 20px;
        bottom: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* 모바일 하단 배너 표시 */
    .mobile-bottom-banner {
        display: block;
    }
    
    /* 모바일에서 플로팅 버튼 위치 조정 (하단 배너 위로) */
    .floating-buttons {
        bottom: 90px;
    }
    
    /* 모바일에서 하단 배너 때문에 컨텐츠가 가려지지 않도록 하단 패딩 추가 */
    .content-wrapper {
        padding-bottom: 100px;
    }
}
