/* 회원가입 페이지 전용 스타일 */

.required {
    color: #dc3545;
    font-weight: bold;
}

.feedback-message {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 입력 필드 그룹 구분선 */
.signup-container .form-group {
    padding-bottom: 25px !important;
    margin-bottom: 25px !important;
    border-bottom: 1px dashed #ccc !important;
}

.signup-container .form-group.no-divider {
    border-bottom: none !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.signup-container .form-group:last-of-type {
    border-bottom: none !important;
}

.signup-container .submit-btn {
    margin-top: 10px;
}

/* 지역 선택 그룹 */
.area-select-group {
    display: flex;
    gap: 10px;
}

.area-select {
    flex: 1;
    height: 48px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-select:hover {
    border-color: #000099;
}

.area-select:focus {
    outline: none;
    border-color: #000099;
    box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.1);
}

.area-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 독립매니저 체크박스 스타일 */
.independent-manager-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background-color: transparent;
    border: none;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #000099;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.checkbox-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0;
    line-height: 20px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #000099;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 14px;
    background-color: #e6f2ff;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.info-link:hover {
    background-color: #000099;
    color: white;
    transform: translateY(-1px);
}

.info-link::before {
    content: "ℹ️";
    font-size: 0.85rem;
}

/* 약관 동의 섹션 */
.terms-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.terms-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.terms-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.terms-group .checkbox-label {
    flex: 1;
    margin-bottom: 0;
}

.terms-text-bold {
    font-weight: 600;
    font-size: 16px;
}

.terms-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 10px 0;
}

.btn-terms-view {
    padding: 6px 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-terms-view:hover {
    background-color: #5a6268;
}

/* 독립매니저 모달 스타일 */
.independent-manager-modal {
    max-width: 700px;
}

.modal-title-with-icon {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000099;
}

.modal-body {
    padding: 10px 0;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.comparison-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #000099;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-item.highlight {
    background-color: #fff8e1;
    border: 2px solid #000099;
}

.comparison-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comparison-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.section-title {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.comparison-table-wrapper {
    margin: 20px 0;
}

.comparison-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background-color: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: table !important;
}

.comparison-table thead {
    background-color: #000099 !important;
    color: white !important;
    display: table-header-group !important;
}

.comparison-table tbody {
    display: table-row-group !important;
}

.comparison-table tr {
    display: table-row !important;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 0.9rem !important;
    word-break: keep-all !important;
    display: table-cell !important;
}

.comparison-table th {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 30% !important;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    width: 35% !important;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    width: 35% !important;
}

.comparison-table tbody td:first-child {
    background-color: #f8f9fa !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.comparison-table .highlight-col {
    background-color: #fff8e1 !important;
    font-weight: 500 !important;
}

.comparison-table thead .highlight-col {
    background-color: #0033cc !important;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* 자격사항 업로드 그리드 */
.qualification-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qualification-upload-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.qualification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.photo-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: white;
    overflow: hidden;
    cursor: pointer;
}

.preview-placeholder {
    color: #999;
    font-size: 0.9rem;
}

.photo-upload-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    min-height: 18px;
}

.photo-actions {
    display: flex;
    gap: 8px;
}

.btn-delete-photo {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    background-color: #dc3545;
    color: white;
}

.btn-delete-photo:hover {
    background-color: #c82333;
}

.modal-footer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-modal-save,
.btn-modal-cancel {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-modal-save {
    background-color: #008000;
    color: white;
}

.btn-modal-save:hover {
    background-color: #006600;
}

.btn-modal-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-modal-cancel:hover {
    background-color: #5a6268;
}

.btn-qualification-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #ff6b00;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-qualification-modal:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

.file-icon {
    font-size: 1.2rem;
}

/* 약관 내용 모달 */
.terms-modal-content {
    max-width: 900px;
    max-height: 80vh;
}

.terms-content {
    line-height: 1.8;
}

.terms-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin: 8px 0;
    color: #666;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .area-select-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .qualification-upload-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 20px 0;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 auto;
        padding: 20px;
        max-height: calc(100vh - 40px);
        margin-top: 0;
    }
    
    .independent-manager-checkbox {
        gap: 8px;
    }
    
    .checkbox-label {
        font-size: 0.95rem;
    }
    
    .info-link {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .modal-title-with-icon {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    /* comparison-table은 모바일에서도 테이블 형태 유지 */
    .comparison-table thead {
        display: table-header-group !important;
    }
    
    .comparison-table tbody {
        display: table-row-group !important;
    }
    
    .comparison-table tr {
        display: table-row !important;
        margin-bottom: 0 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .comparison-table td {
        display: table-cell !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 10px !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .comparison-table td:last-child {
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .comparison-table td::before {
        content: none !important;
        display: none !important;
    }
    
    .terms-section {
        padding: 15px;
    }
    
    .terms-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .terms-group .checkbox-label {
        flex: 1;
        min-width: 0;
        word-break: keep-all;
    }
    
    .btn-terms-view {
        flex-shrink: 0;
        min-width: 50px;
    }
}

